ESI::FittingsApi

All URIs are relative to https://esi.evetech.net

Method HTTP request Description
delete_characters_character_id_fittings_fitting_id DELETE /v1/characters/character_id/fittings/fitting_id/ Delete fitting
get_characters_character_id_fittings GET /v1/characters/character_id/fittings/ Get fittings
post_characters_character_id_fittings POST /v1/characters/character_id/fittings/ Create fitting

delete_characters_character_id_fittings_fitting_id

delete_characters_character_id_fittings_fitting_id(character_idfitting_id, opts)

Delete fitting

Delete a fitting from a character ---

Example

# load the gem
require 'esi-client-bvv'
# setup authorization
ESI.configure do |config|
  # Configure OAuth2 access token for authorization: evesso
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = ESI::FittingsApi.new

character_id = 56 # Integer | An EVE character ID

fitting_id = 56 # Integer | ID for a fitting of this character

opts = { 
  datasource: "tranquility", # String | The server name you would like data from
  token: "token_example" # String | Access token to use if unable to set a header
}

begin
  #Delete fitting
  api_instance.delete_characters_character_id_fittings_fitting_id(character_idfitting_id, opts)
rescue ESI::ApiError => e
  puts "Exception when calling FittingsApi->delete_characters_character_id_fittings_fitting_id: #{e}"
end

Parameters

Name Type Description Notes
character_id Integer An EVE character ID
fitting_id Integer ID for a fitting of this character
datasource String The server name you would like data from [optional] [default to tranquility]
token String Access token to use if unable to set a header [optional]

Return type

nil (empty response body)

Authorization

evesso

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

get_characters_character_id_fittings

Array<GetCharactersCharacterIdFittings200Ok> get_characters_character_id_fittings(character_id, opts)

Get fittings

Return fittings of a character --- This route is cached for up to 300 seconds

Example

# load the gem
require 'esi-client-bvv'
# setup authorization
ESI.configure do |config|
  # Configure OAuth2 access token for authorization: evesso
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = ESI::FittingsApi.new

character_id = 56 # Integer | An EVE character ID

opts = { 
  datasource: "tranquility", # String | The server name you would like data from
  if_none_match: "if_none_match_example", # String | ETag from a previous request. A 304 will be returned if this matches the current ETag
  token: "token_example" # String | Access token to use if unable to set a header
}

begin
  #Get fittings
  result = api_instance.get_characters_character_id_fittings(character_id, opts)
  p result
rescue ESI::ApiError => e
  puts "Exception when calling FittingsApi->get_characters_character_id_fittings: #{e}"
end

Parameters

Name Type Description Notes
character_id Integer An EVE character ID
datasource String The server name you would like data from [optional] [default to tranquility]
if_none_match String ETag from a previous request. A 304 will be returned if this matches the current ETag [optional]
token String Access token to use if unable to set a header [optional]

Return type

Array<GetCharactersCharacterIdFittings200Ok>

Authorization

evesso

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

post_characters_character_id_fittings

PostCharactersCharacterIdFittingsCreated post_characters_character_id_fittings(character_idfitting, opts)

Create fitting

Save a new fitting for a character ---

Example

# load the gem
require 'esi-client-bvv'
# setup authorization
ESI.configure do |config|
  # Configure OAuth2 access token for authorization: evesso
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = ESI::FittingsApi.new

character_id = 56 # Integer | An EVE character ID

fitting = ESI::PostCharactersCharacterIdFittingsFitting.new # PostCharactersCharacterIdFittingsFitting | Details about the new fitting

opts = { 
  datasource: "tranquility", # String | The server name you would like data from
  token: "token_example" # String | Access token to use if unable to set a header
}

begin
  #Create fitting
  result = api_instance.post_characters_character_id_fittings(character_idfitting, opts)
  p result
rescue ESI::ApiError => e
  puts "Exception when calling FittingsApi->post_characters_character_id_fittings: #{e}"
end

Parameters

Name Type Description Notes
character_id Integer An EVE character ID
fitting PostCharactersCharacterIdFittingsFitting Details about the new fitting
datasource String The server name you would like data from [optional] [default to tranquility]
token String Access token to use if unable to set a header [optional]

Return type

PostCharactersCharacterIdFittingsCreated

Authorization

evesso

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json