Skip to content

Latest commit

 

History

History
163 lines (118 loc) · 5.79 KB

ClonesApi.md

File metadata and controls

163 lines (118 loc) · 5.79 KB

RubyEveesiClient::ClonesApi

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

Method HTTP request Description
get_characters_character_id_clones GET /characters/{character_id}/clones/ Get clones
get_characters_character_id_implants GET /characters/{character_id}/implants/ Get active implants

get_characters_character_id_clones

get_characters_character_id_clones(character_id, opts)

Get clones

A list of the character's clones --- Alternate route: /dev/characters/{character_id}/clones/ Alternate route: /v3/characters/{character_id}/clones/ Alternate route: /v4/characters/{character_id}/clones/ --- This route is cached for up to 120 seconds

Examples

require 'time'
require 'ruby_eveesi_client'
# setup authorization
RubyEveesiClient.configure do |config|
  # Configure OAuth2 access token for authorization: evesso
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = RubyEveesiClient::ClonesApi.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 clones
  result = api_instance.get_characters_character_id_clones(character_id, opts)
  p result
rescue RubyEveesiClient::ApiError => e
  puts "Error when calling ClonesApi->get_characters_character_id_clones: #{e}"
end

Using the get_characters_character_id_clones_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> get_characters_character_id_clones_with_http_info(character_id, opts)

begin
  # Get clones
  data, status_code, headers = api_instance.get_characters_character_id_clones_with_http_info(character_id, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <GetCharactersCharacterIdClonesOk>
rescue RubyEveesiClient::ApiError => e
  puts "Error when calling ClonesApi->get_characters_character_id_clones_with_http_info: #{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

GetCharactersCharacterIdClonesOk

Authorization

evesso

HTTP request headers

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

get_characters_character_id_implants

Array<Integer> get_characters_character_id_implants(character_id, opts)

Get active implants

Return implants on the active clone of a character --- Alternate route: /dev/characters/{character_id}/implants/ Alternate route: /legacy/characters/{character_id}/implants/ Alternate route: /v1/characters/{character_id}/implants/ Alternate route: /v2/characters/{character_id}/implants/ --- This route is cached for up to 120 seconds

Examples

require 'time'
require 'ruby_eveesi_client'
# setup authorization
RubyEveesiClient.configure do |config|
  # Configure OAuth2 access token for authorization: evesso
  config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = RubyEveesiClient::ClonesApi.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 active implants
  result = api_instance.get_characters_character_id_implants(character_id, opts)
  p result
rescue RubyEveesiClient::ApiError => e
  puts "Error when calling ClonesApi->get_characters_character_id_implants: #{e}"
end

Using the get_characters_character_id_implants_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(Array<Integer>, Integer, Hash)> get_characters_character_id_implants_with_http_info(character_id, opts)

begin
  # Get active implants
  data, status_code, headers = api_instance.get_characters_character_id_implants_with_http_info(character_id, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => Array&lt;Integer&gt;
rescue RubyEveesiClient::ApiError => e
  puts "Error when calling ClonesApi->get_characters_character_id_implants_with_http_info: #{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<Integer>

Authorization

evesso

HTTP request headers

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