Class: EsiClient::CharacterApi
- Inherits:
-
Object
- Object
- EsiClient::CharacterApi
- Defined in:
- lib/esi-ruby/api/character_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_characters_character_id(character_id, opts = {}) ⇒ GetCharactersCharacterIdOk
Get character’s public information Public information about a character — Alternate route: ‘/v4/characters/character_id/` Alternate route: `/dev/characters/character_id/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_agents_research(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdAgentsResearch200Ok>
Get agents research Return a list of agents research information for a character.
-
#get_characters_character_id_agents_research_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdAgentsResearch200Ok>, Fixnum, Hash)>
Get agents research Return a list of agents research information for a character.
-
#get_characters_character_id_blueprints(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdBlueprints200Ok>
Get blueprints Return a list of blueprints the character has — Alternate route: ‘/v1/characters/character_id/blueprints/` Alternate route: `/legacy/characters/character_id/blueprints/` Alternate route: `/dev/characters/character_id/blueprints/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_blueprints_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdBlueprints200Ok>, Fixnum, Hash)>
Get blueprints Return a list of blueprints the character has — Alternate route: `/v1/characters/character_id/blueprints/` Alternate route: `/legacy/characters/character_id/blueprints/` Alternate route: `/dev/characters/character_id/blueprints/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_chat_channels(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdChatChannels200Ok>
Get chat channels Return chat channels that a character is the owner or an operator of — Alternate route: ‘/v1/characters/character_id/chat_channels/` Alternate route: `/legacy/characters/character_id/chat_channels/` Alternate route: `/dev/characters/character_id/chat_channels/` — This route is cached for up to 300 seconds.
-
#get_characters_character_id_chat_channels_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdChatChannels200Ok>, Fixnum, Hash)>
Get chat channels Return chat channels that a character is the owner or an operator of — Alternate route: `/v1/characters/character_id/chat_channels/` Alternate route: `/legacy/characters/character_id/chat_channels/` Alternate route: `/dev/characters/character_id/chat_channels/` — This route is cached for up to 300 seconds.
-
#get_characters_character_id_corporationhistory(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdCorporationhistory200Ok>
Get corporation history Get a list of all the corporations a character has been a member of — Alternate route: ‘/v1/characters/character_id/corporationhistory/` Alternate route: `/legacy/characters/character_id/corporationhistory/` Alternate route: `/dev/characters/character_id/corporationhistory/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_corporationhistory_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdCorporationhistory200Ok>, Fixnum, Hash)>
Get corporation history Get a list of all the corporations a character has been a member of — Alternate route: `/v1/characters/character_id/corporationhistory/` Alternate route: `/legacy/characters/character_id/corporationhistory/` Alternate route: `/dev/characters/character_id/corporationhistory/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_medals(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdMedals200Ok>
Get medals Return a list of medals the character has — Alternate route: ‘/v1/characters/character_id/medals/` Alternate route: `/legacy/characters/character_id/medals/` Alternate route: `/dev/characters/character_id/medals/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_medals_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdMedals200Ok>, Fixnum, Hash)>
Get medals Return a list of medals the character has — Alternate route: `/v1/characters/character_id/medals/` Alternate route: `/legacy/characters/character_id/medals/` Alternate route: `/dev/characters/character_id/medals/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_portrait(character_id, opts = {}) ⇒ GetCharactersCharacterIdPortraitOk
Get character portraits Get portrait urls for a character — Alternate route: ‘/v2/characters/character_id/portrait/` Alternate route: `/dev/characters/character_id/portrait/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_portrait_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdPortraitOk, Fixnum, Hash)>
Get character portraits Get portrait urls for a character — Alternate route: `/v2/characters/character_id/portrait/` Alternate route: `/dev/characters/character_id/portrait/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_roles(character_id, opts = {}) ⇒ Array<String>
Get character corporation roles Returns a character’s corporation roles — Alternate route: ‘/v1/characters/character_id/roles/` Alternate route: `/legacy/characters/character_id/roles/` Alternate route: `/dev/characters/character_id/roles/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_roles_with_http_info(character_id, opts = {}) ⇒ Array<(Array<String>, Fixnum, Hash)>
Get character corporation roles Returns a character's corporation roles — Alternate route: `/v1/characters/character_id/roles/` Alternate route: `/legacy/characters/character_id/roles/` Alternate route: `/dev/characters/character_id/roles/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_standings(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdStandings200Ok>
Get standings Return character standings from agents, NPC corporations, and factions — Alternate route: ‘/v1/characters/character_id/standings/` Alternate route: `/legacy/characters/character_id/standings/` Alternate route: `/dev/characters/character_id/standings/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_standings_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdStandings200Ok>, Fixnum, Hash)>
Get standings Return character standings from agents, NPC corporations, and factions — Alternate route: `/v1/characters/character_id/standings/` Alternate route: `/legacy/characters/character_id/standings/` Alternate route: `/dev/characters/character_id/standings/` — This route is cached for up to 3600 seconds.
-
#get_characters_character_id_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdOk, Fixnum, Hash)>
Get character's public information Public information about a character — Alternate route: `/v4/characters/character_id/` Alternate route: `/dev/characters/character_id/` — This route is cached for up to 3600 seconds.
-
#get_characters_names(character_ids, opts = {}) ⇒ Array<GetCharactersNames200Ok>
Get character names Resolve a set of character IDs to character names — Alternate route: ‘/v1/characters/names/` Alternate route: `/legacy/characters/names/` Alternate route: `/dev/characters/names/` — This route is cached for up to 3600 seconds.
-
#get_characters_names_with_http_info(character_ids, opts = {}) ⇒ Array<(Array<GetCharactersNames200Ok>, Fixnum, Hash)>
Get character names Resolve a set of character IDs to character names — Alternate route: `/v1/characters/names/` Alternate route: `/legacy/characters/names/` Alternate route: `/dev/characters/names/` — This route is cached for up to 3600 seconds.
-
#initialize(api_client = ApiClient.default) ⇒ CharacterApi
constructor
A new instance of CharacterApi.
-
#post_characters_affiliation(characters, opts = {}) ⇒ Array<PostCharactersAffiliation200Ok>
Character affiliation Bulk lookup of character IDs to corporation, alliance and faction — Alternate route: ‘/v1/characters/affiliation/` Alternate route: `/legacy/characters/affiliation/` Alternate route: `/dev/characters/affiliation/` — This route is cached for up to 3600 seconds.
-
#post_characters_affiliation_with_http_info(characters, opts = {}) ⇒ Array<(Array<PostCharactersAffiliation200Ok>, Fixnum, Hash)>
Character affiliation Bulk lookup of character IDs to corporation, alliance and faction — Alternate route: `/v1/characters/affiliation/` Alternate route: `/legacy/characters/affiliation/` Alternate route: `/dev/characters/affiliation/` — This route is cached for up to 3600 seconds.
-
#post_characters_character_id_cspa(character_id, characters, opts = {}) ⇒ PostCharactersCharacterIdCspaCreated
Calculate a CSPA charge cost Takes a source character ID in the url and a set of target character ID’s in the body, returns a CSPA charge cost — Alternate route: ‘/v3/characters/character_id/cspa/` Alternate route: `/legacy/characters/character_id/cspa/` Alternate route: `/dev/characters/character_id/cspa/`.
-
#post_characters_character_id_cspa_with_http_info(character_id, characters, opts = {}) ⇒ Array<(PostCharactersCharacterIdCspaCreated, Fixnum, Hash)>
Calculate a CSPA charge cost Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost — Alternate route: `/v3/characters/character_id/cspa/` Alternate route: `/legacy/characters/character_id/cspa/` Alternate route: `/dev/characters/character_id/cspa/`.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ CharacterApi
Returns a new instance of CharacterApi.
18 19 20 |
# File 'lib/esi-ruby/api/character_api.rb', line 18 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
16 17 18 |
# File 'lib/esi-ruby/api/character_api.rb', line 16 def api_client @api_client end |
Instance Method Details
#get_characters_character_id(character_id, opts = {}) ⇒ GetCharactersCharacterIdOk
Get character’s public information Public information about a character — Alternate route: ‘/v4/characters/character_id/` Alternate route: `/dev/characters/character_id/` — This route is cached for up to 3600 seconds
30 31 32 33 |
# File 'lib/esi-ruby/api/character_api.rb', line 30 def get_characters_character_id(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_with_http_info(character_id, opts) return data end |
#get_characters_character_id_agents_research(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdAgentsResearch200Ok>
Get agents research Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate) — Alternate route: ‘/v1/characters/character_id/agents_research/` Alternate route: `/legacy/characters/character_id/agents_research/` Alternate route: `/dev/characters/character_id/agents_research/` — This route is cached for up to 3600 seconds
94 95 96 97 |
# File 'lib/esi-ruby/api/character_api.rb', line 94 def get_characters_character_id_agents_research(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_agents_research_with_http_info(character_id, opts) return data end |
#get_characters_character_id_agents_research_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdAgentsResearch200Ok>, Fixnum, Hash)>
Get agents research Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate) — Alternate route: `/v1/characters/character_id/agents_research/` Alternate route: `/legacy/characters/character_id/agents_research/` Alternate route: `/dev/characters/character_id/agents_research/` — This route is cached for up to 3600 seconds
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/esi-ruby/api/character_api.rb', line 108 def get_characters_character_id_agents_research_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_agents_research ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_agents_research" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/agents_research/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdAgentsResearch200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_agents_research\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_blueprints(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdBlueprints200Ok>
Get blueprints Return a list of blueprints the character has — Alternate route: ‘/v1/characters/character_id/blueprints/` Alternate route: `/legacy/characters/character_id/blueprints/` Alternate route: `/dev/characters/character_id/blueprints/` — This route is cached for up to 3600 seconds
160 161 162 163 |
# File 'lib/esi-ruby/api/character_api.rb', line 160 def get_characters_character_id_blueprints(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_blueprints_with_http_info(character_id, opts) return data end |
#get_characters_character_id_blueprints_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdBlueprints200Ok>, Fixnum, Hash)>
Get blueprints Return a list of blueprints the character has — Alternate route: `/v1/characters/character_id/blueprints/` Alternate route: `/legacy/characters/character_id/blueprints/` Alternate route: `/dev/characters/character_id/blueprints/` — This route is cached for up to 3600 seconds
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/esi-ruby/api/character_api.rb', line 174 def get_characters_character_id_blueprints_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_blueprints ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_blueprints" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/blueprints/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdBlueprints200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_blueprints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_chat_channels(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdChatChannels200Ok>
Get chat channels Return chat channels that a character is the owner or an operator of — Alternate route: ‘/v1/characters/character_id/chat_channels/` Alternate route: `/legacy/characters/character_id/chat_channels/` Alternate route: `/dev/characters/character_id/chat_channels/` — This route is cached for up to 300 seconds
226 227 228 229 |
# File 'lib/esi-ruby/api/character_api.rb', line 226 def get_characters_character_id_chat_channels(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_chat_channels_with_http_info(character_id, opts) return data end |
#get_characters_character_id_chat_channels_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdChatChannels200Ok>, Fixnum, Hash)>
Get chat channels Return chat channels that a character is the owner or an operator of — Alternate route: `/v1/characters/character_id/chat_channels/` Alternate route: `/legacy/characters/character_id/chat_channels/` Alternate route: `/dev/characters/character_id/chat_channels/` — This route is cached for up to 300 seconds
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 |
# File 'lib/esi-ruby/api/character_api.rb', line 240 def get_characters_character_id_chat_channels_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_chat_channels ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_chat_channels" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/chat_channels/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdChatChannels200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_chat_channels\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_corporationhistory(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdCorporationhistory200Ok>
Get corporation history Get a list of all the corporations a character has been a member of — Alternate route: ‘/v1/characters/character_id/corporationhistory/` Alternate route: `/legacy/characters/character_id/corporationhistory/` Alternate route: `/dev/characters/character_id/corporationhistory/` — This route is cached for up to 3600 seconds
291 292 293 294 |
# File 'lib/esi-ruby/api/character_api.rb', line 291 def get_characters_character_id_corporationhistory(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_corporationhistory_with_http_info(character_id, opts) return data end |
#get_characters_character_id_corporationhistory_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdCorporationhistory200Ok>, Fixnum, Hash)>
Get corporation history Get a list of all the corporations a character has been a member of — Alternate route: `/v1/characters/character_id/corporationhistory/` Alternate route: `/legacy/characters/character_id/corporationhistory/` Alternate route: `/dev/characters/character_id/corporationhistory/` — This route is cached for up to 3600 seconds
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'lib/esi-ruby/api/character_api.rb', line 304 def get_characters_character_id_corporationhistory_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_corporationhistory ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_corporationhistory" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/corporationhistory/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdCorporationhistory200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_corporationhistory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_medals(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdMedals200Ok>
Get medals Return a list of medals the character has — Alternate route: ‘/v1/characters/character_id/medals/` Alternate route: `/legacy/characters/character_id/medals/` Alternate route: `/dev/characters/character_id/medals/` — This route is cached for up to 3600 seconds
355 356 357 358 |
# File 'lib/esi-ruby/api/character_api.rb', line 355 def get_characters_character_id_medals(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_medals_with_http_info(character_id, opts) return data end |
#get_characters_character_id_medals_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdMedals200Ok>, Fixnum, Hash)>
Get medals Return a list of medals the character has — Alternate route: `/v1/characters/character_id/medals/` Alternate route: `/legacy/characters/character_id/medals/` Alternate route: `/dev/characters/character_id/medals/` — This route is cached for up to 3600 seconds
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 |
# File 'lib/esi-ruby/api/character_api.rb', line 369 def get_characters_character_id_medals_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_medals ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_medals" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/medals/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdMedals200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_medals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_portrait(character_id, opts = {}) ⇒ GetCharactersCharacterIdPortraitOk
Get character portraits Get portrait urls for a character — Alternate route: ‘/v2/characters/character_id/portrait/` Alternate route: `/dev/characters/character_id/portrait/` — This route is cached for up to 3600 seconds
420 421 422 423 |
# File 'lib/esi-ruby/api/character_api.rb', line 420 def get_characters_character_id_portrait(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_portrait_with_http_info(character_id, opts) return data end |
#get_characters_character_id_portrait_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdPortraitOk, Fixnum, Hash)>
Get character portraits Get portrait urls for a character — Alternate route: `/v2/characters/character_id/portrait/` Alternate route: `/dev/characters/character_id/portrait/` — This route is cached for up to 3600 seconds
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 |
# File 'lib/esi-ruby/api/character_api.rb', line 433 def get_characters_character_id_portrait_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_portrait ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_portrait" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/portrait/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCharactersCharacterIdPortraitOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_portrait\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_roles(character_id, opts = {}) ⇒ Array<String>
Get character corporation roles Returns a character’s corporation roles — Alternate route: ‘/v1/characters/character_id/roles/` Alternate route: `/legacy/characters/character_id/roles/` Alternate route: `/dev/characters/character_id/roles/` — This route is cached for up to 3600 seconds
484 485 486 487 |
# File 'lib/esi-ruby/api/character_api.rb', line 484 def get_characters_character_id_roles(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_roles_with_http_info(character_id, opts) return data end |
#get_characters_character_id_roles_with_http_info(character_id, opts = {}) ⇒ Array<(Array<String>, Fixnum, Hash)>
Get character corporation roles Returns a character's corporation roles — Alternate route: `/v1/characters/character_id/roles/` Alternate route: `/legacy/characters/character_id/roles/` Alternate route: `/dev/characters/character_id/roles/` — This route is cached for up to 3600 seconds
498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 |
# File 'lib/esi-ruby/api/character_api.rb', line 498 def get_characters_character_id_roles_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_roles ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_roles" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/roles/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<String>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_standings(character_id, opts = {}) ⇒ Array<GetCharactersCharacterIdStandings200Ok>
Get standings Return character standings from agents, NPC corporations, and factions — Alternate route: ‘/v1/characters/character_id/standings/` Alternate route: `/legacy/characters/character_id/standings/` Alternate route: `/dev/characters/character_id/standings/` — This route is cached for up to 3600 seconds
550 551 552 553 |
# File 'lib/esi-ruby/api/character_api.rb', line 550 def get_characters_character_id_standings(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_standings_with_http_info(character_id, opts) return data end |
#get_characters_character_id_standings_with_http_info(character_id, opts = {}) ⇒ Array<(Array<GetCharactersCharacterIdStandings200Ok>, Fixnum, Hash)>
Get standings Return character standings from agents, NPC corporations, and factions — Alternate route: `/v1/characters/character_id/standings/` Alternate route: `/legacy/characters/character_id/standings/` Alternate route: `/dev/characters/character_id/standings/` — This route is cached for up to 3600 seconds
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 |
# File 'lib/esi-ruby/api/character_api.rb', line 564 def get_characters_character_id_standings_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id_standings ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id_standings" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/standings/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersCharacterIdStandings200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id_standings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_character_id_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdOk, Fixnum, Hash)>
Get character's public information Public information about a character — Alternate route: `/v4/characters/character_id/` Alternate route: `/dev/characters/character_id/` — This route is cached for up to 3600 seconds
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/esi-ruby/api/character_api.rb', line 43 def get_characters_character_id_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_character_id ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.get_characters_character_id" if character_id.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCharactersCharacterIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_character_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_characters_names(character_ids, opts = {}) ⇒ Array<GetCharactersNames200Ok>
Get character names Resolve a set of character IDs to character names — Alternate route: ‘/v1/characters/names/` Alternate route: `/legacy/characters/names/` Alternate route: `/dev/characters/names/` — This route is cached for up to 3600 seconds
615 616 617 618 |
# File 'lib/esi-ruby/api/character_api.rb', line 615 def get_characters_names(character_ids, opts = {}) data, _status_code, _headers = get_characters_names_with_http_info(character_ids, opts) return data end |
#get_characters_names_with_http_info(character_ids, opts = {}) ⇒ Array<(Array<GetCharactersNames200Ok>, Fixnum, Hash)>
Get character names Resolve a set of character IDs to character names — Alternate route: `/v1/characters/names/` Alternate route: `/legacy/characters/names/` Alternate route: `/dev/characters/names/` — This route is cached for up to 3600 seconds
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 |
# File 'lib/esi-ruby/api/character_api.rb', line 628 def get_characters_names_with_http_info(character_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.get_characters_names ..." end # verify the required parameter 'character_ids' is set fail ArgumentError, "Missing the required parameter 'character_ids' when calling CharacterApi.get_characters_names" if character_ids.nil? if character_ids.length > 1000 fail ArgumentError, 'invalid value for "character_ids" when calling CharacterApi.get_characters_names, number of items must be less than or equal to 1000.' end if character_ids.length < 1 fail ArgumentError, 'invalid value for "character_ids" when calling CharacterApi.get_characters_names, number of items must be greater than or equal to 1.' end if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/names/".sub('{format}','json') # query parameters query_params = {} query_params[:'character_ids'] = @api_client.build_collection_param(character_ids, :csv) query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetCharactersNames200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#get_characters_names\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_characters_affiliation(characters, opts = {}) ⇒ Array<PostCharactersAffiliation200Ok>
Character affiliation Bulk lookup of character IDs to corporation, alliance and faction — Alternate route: ‘/v1/characters/affiliation/` Alternate route: `/legacy/characters/affiliation/` Alternate route: `/dev/characters/affiliation/` — This route is cached for up to 3600 seconds
687 688 689 690 |
# File 'lib/esi-ruby/api/character_api.rb', line 687 def post_characters_affiliation(characters, opts = {}) data, _status_code, _headers = post_characters_affiliation_with_http_info(characters, opts) return data end |
#post_characters_affiliation_with_http_info(characters, opts = {}) ⇒ Array<(Array<PostCharactersAffiliation200Ok>, Fixnum, Hash)>
Character affiliation Bulk lookup of character IDs to corporation, alliance and faction — Alternate route: `/v1/characters/affiliation/` Alternate route: `/legacy/characters/affiliation/` Alternate route: `/dev/characters/affiliation/` — This route is cached for up to 3600 seconds
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'lib/esi-ruby/api/character_api.rb', line 700 def post_characters_affiliation_with_http_info(characters, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.post_characters_affiliation ..." end # verify the required parameter 'characters' is set fail ArgumentError, "Missing the required parameter 'characters' when calling CharacterApi.post_characters_affiliation" if characters.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/affiliation/".sub('{format}','json') # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(characters) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<PostCharactersAffiliation200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#post_characters_affiliation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_characters_character_id_cspa(character_id, characters, opts = {}) ⇒ PostCharactersCharacterIdCspaCreated
Calculate a CSPA charge cost Takes a source character ID in the url and a set of target character ID’s in the body, returns a CSPA charge cost — Alternate route: ‘/v3/characters/character_id/cspa/` Alternate route: `/legacy/characters/character_id/cspa/` Alternate route: `/dev/characters/character_id/cspa/`
752 753 754 755 |
# File 'lib/esi-ruby/api/character_api.rb', line 752 def post_characters_character_id_cspa(character_id, characters, opts = {}) data, _status_code, _headers = post_characters_character_id_cspa_with_http_info(character_id, characters, opts) return data end |
#post_characters_character_id_cspa_with_http_info(character_id, characters, opts = {}) ⇒ Array<(PostCharactersCharacterIdCspaCreated, Fixnum, Hash)>
Calculate a CSPA charge cost Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost — Alternate route: `/v3/characters/character_id/cspa/` Alternate route: `/legacy/characters/character_id/cspa/` Alternate route: `/dev/characters/character_id/cspa/`
767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 |
# File 'lib/esi-ruby/api/character_api.rb', line 767 def post_characters_character_id_cspa_with_http_info(character_id, characters, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CharacterApi.post_characters_character_id_cspa ..." end # verify the required parameter 'character_id' is set fail ArgumentError, "Missing the required parameter 'character_id' when calling CharacterApi.post_characters_character_id_cspa" if character_id.nil? # verify the required parameter 'characters' is set fail ArgumentError, "Missing the required parameter 'characters' when calling CharacterApi.post_characters_character_id_cspa" if characters.nil? if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = "/characters/{character_id}/cspa/".sub('{format}','json').sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(characters) auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PostCharactersCharacterIdCspaCreated') if @api_client.config.debugging @api_client.config.logger.debug "API called: CharacterApi#post_characters_character_id_cspa\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |