Class: EsiClient::UniverseApi

Inherits:
Object
  • Object
show all
Defined in:
lib/esi-ruby/api/universe_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ UniverseApi

Returns a new instance of UniverseApi.



18
19
20
# File 'lib/esi-ruby/api/universe_api.rb', line 18

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



16
17
18
# File 'lib/esi-ruby/api/universe_api.rb', line 16

def api_client
  @api_client
end

Instance Method Details

#get_universe_bloodlines(opts = {}) ⇒ Array<GetUniverseBloodlines200Ok>

Get bloodlines Get a list of bloodlines — Alternate route: ‘/v1/universe/bloodlines/` Alternate route: `/legacy/universe/bloodlines/` Alternate route: `/dev/universe/bloodlines/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



30
31
32
33
# File 'lib/esi-ruby/api/universe_api.rb', line 30

def get_universe_bloodlines(opts = {})
  data, _status_code, _headers = get_universe_bloodlines_with_http_info(opts)
  return data
end

#get_universe_bloodlines_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseBloodlines200Ok>, Fixnum, Hash)>

Get bloodlines Get a list of bloodlines — Alternate route: &#x60;/v1/universe/bloodlines/&#x60; Alternate route: &#x60;/legacy/universe/bloodlines/&#x60; Alternate route: &#x60;/dev/universe/bloodlines/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<GetUniverseBloodlines200Ok>, Fixnum, Hash)>)

    Array<GetUniverseBloodlines200Ok> data, response status code and response headers



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
84
85
# File 'lib/esi-ruby/api/universe_api.rb', line 43

def get_universe_bloodlines_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_bloodlines ..."
  end
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/bloodlines/".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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<GetUniverseBloodlines200Ok>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_bloodlines\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_categories(opts = {}) ⇒ Array<Integer>

Get item categories Get a list of item categories — Alternate route: ‘/v1/universe/categories/` Alternate route: `/legacy/universe/categories/` Alternate route: `/dev/universe/categories/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


94
95
96
97
# File 'lib/esi-ruby/api/universe_api.rb', line 94

def get_universe_categories(opts = {})
  data, _status_code, _headers = get_universe_categories_with_http_info(opts)
  return data
end

#get_universe_categories_category_id(category_id, opts = {}) ⇒ GetUniverseCategoriesCategoryIdOk

Get item category information Get information of an item category — Alternate route: ‘/v1/universe/categories/category_id/` Alternate route: `/legacy/universe/categories/category_id/` Alternate route: `/dev/universe/categories/category_id/` — This route expires daily at 11:05

Parameters:

  • category_id

    An Eve item category ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



155
156
157
158
# File 'lib/esi-ruby/api/universe_api.rb', line 155

def get_universe_categories_category_id(category_id, opts = {})
  data, _status_code, _headers = get_universe_categories_category_id_with_http_info(category_id, opts)
  return data
end

#get_universe_categories_category_id_with_http_info(category_id, opts = {}) ⇒ Array<(GetUniverseCategoriesCategoryIdOk, Fixnum, Hash)>

Get item category information Get information of an item category — Alternate route: &#x60;/v1/universe/categories/category_id/&#x60; Alternate route: &#x60;/legacy/universe/categories/category_id/&#x60; Alternate route: &#x60;/dev/universe/categories/category_id/&#x60; — This route expires daily at 11:05

Parameters:

  • category_id

    An Eve item category ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



169
170
171
172
173
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
# File 'lib/esi-ruby/api/universe_api.rb', line 169

def get_universe_categories_category_id_with_http_info(category_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_categories_category_id ..."
  end
  # verify the required parameter 'category_id' is set
  fail ArgumentError, "Missing the required parameter 'category_id' when calling UniverseApi.get_universe_categories_category_id" if category_id.nil?
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/categories/{category_id}/".sub('{format}','json').sub('{' + 'category_id' + '}', category_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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 => 'GetUniverseCategoriesCategoryIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_categories_category_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_categories_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

Get item categories Get a list of item categories — Alternate route: &#x60;/v1/universe/categories/&#x60; Alternate route: &#x60;/legacy/universe/categories/&#x60; Alternate route: &#x60;/dev/universe/categories/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



106
107
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
# File 'lib/esi-ruby/api/universe_api.rb', line 106

def get_universe_categories_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_categories ..."
  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 = "/universe/categories/".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 = 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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_constellations(opts = {}) ⇒ Array<Integer>

Get constellations Get a list of constellations — Alternate route: ‘/v1/universe/constellations/` Alternate route: `/legacy/universe/constellations/` Alternate route: `/dev/universe/constellations/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


222
223
224
225
# File 'lib/esi-ruby/api/universe_api.rb', line 222

def get_universe_constellations(opts = {})
  data, _status_code, _headers = get_universe_constellations_with_http_info(opts)
  return data
end

#get_universe_constellations_constellation_id(constellation_id, opts = {}) ⇒ GetUniverseConstellationsConstellationIdOk

Get constellation information Get information on a constellation — Alternate route: ‘/v1/universe/constellations/constellation_id/` Alternate route: `/legacy/universe/constellations/constellation_id/` Alternate route: `/dev/universe/constellations/constellation_id/` — This route expires daily at 11:05

Parameters:

  • constellation_id

    constellation_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



283
284
285
286
# File 'lib/esi-ruby/api/universe_api.rb', line 283

def get_universe_constellations_constellation_id(constellation_id, opts = {})
  data, _status_code, _headers = get_universe_constellations_constellation_id_with_http_info(constellation_id, opts)
  return data
end

#get_universe_constellations_constellation_id_with_http_info(constellation_id, opts = {}) ⇒ Array<(GetUniverseConstellationsConstellationIdOk, Fixnum, Hash)>

Get constellation information Get information on a constellation — Alternate route: &#x60;/v1/universe/constellations/constellation_id/&#x60; Alternate route: &#x60;/legacy/universe/constellations/constellation_id/&#x60; Alternate route: &#x60;/dev/universe/constellations/constellation_id/&#x60; — This route expires daily at 11:05

Parameters:

  • constellation_id

    constellation_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



297
298
299
300
301
302
303
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
# File 'lib/esi-ruby/api/universe_api.rb', line 297

def get_universe_constellations_constellation_id_with_http_info(constellation_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_constellations_constellation_id ..."
  end
  # verify the required parameter 'constellation_id' is set
  fail ArgumentError, "Missing the required parameter 'constellation_id' when calling UniverseApi.get_universe_constellations_constellation_id" if constellation_id.nil?
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/constellations/{constellation_id}/".sub('{format}','json').sub('{' + 'constellation_id' + '}', constellation_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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 => 'GetUniverseConstellationsConstellationIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_constellations_constellation_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_constellations_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

Get constellations Get a list of constellations — Alternate route: &#x60;/v1/universe/constellations/&#x60; Alternate route: &#x60;/legacy/universe/constellations/&#x60; Alternate route: &#x60;/dev/universe/constellations/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



234
235
236
237
238
239
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
# File 'lib/esi-ruby/api/universe_api.rb', line 234

def get_universe_constellations_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_constellations ..."
  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 = "/universe/constellations/".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 = 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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_constellations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_factions(opts = {}) ⇒ Array<GetUniverseFactions200Ok>

Get factions Get a list of factions — Alternate route: ‘/v1/universe/factions/` Alternate route: `/legacy/universe/factions/` Alternate route: `/dev/universe/factions/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



351
352
353
354
# File 'lib/esi-ruby/api/universe_api.rb', line 351

def get_universe_factions(opts = {})
  data, _status_code, _headers = get_universe_factions_with_http_info(opts)
  return data
end

#get_universe_factions_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseFactions200Ok>, Fixnum, Hash)>

Get factions Get a list of factions — Alternate route: &#x60;/v1/universe/factions/&#x60; Alternate route: &#x60;/legacy/universe/factions/&#x60; Alternate route: &#x60;/dev/universe/factions/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<GetUniverseFactions200Ok>, Fixnum, Hash)>)

    Array<GetUniverseFactions200Ok> data, response status code and response headers



364
365
366
367
368
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
# File 'lib/esi-ruby/api/universe_api.rb', line 364

def get_universe_factions_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_factions ..."
  end
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/factions/".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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<GetUniverseFactions200Ok>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_factions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_graphics(opts = {}) ⇒ Array<Integer>

Get graphics Get a list of graphics — Alternate route: ‘/v1/universe/graphics/` Alternate route: `/legacy/universe/graphics/` Alternate route: `/dev/universe/graphics/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


415
416
417
418
# File 'lib/esi-ruby/api/universe_api.rb', line 415

def get_universe_graphics(opts = {})
  data, _status_code, _headers = get_universe_graphics_with_http_info(opts)
  return data
end

#get_universe_graphics_graphic_id(graphic_id, opts = {}) ⇒ GetUniverseGraphicsGraphicIdOk

Get graphic information Get information on a graphic — Alternate route: ‘/v1/universe/graphics/graphic_id/` Alternate route: `/legacy/universe/graphics/graphic_id/` Alternate route: `/dev/universe/graphics/graphic_id/` — This route expires daily at 11:05

Parameters:

  • graphic_id

    graphic_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



475
476
477
478
# File 'lib/esi-ruby/api/universe_api.rb', line 475

def get_universe_graphics_graphic_id(graphic_id, opts = {})
  data, _status_code, _headers = get_universe_graphics_graphic_id_with_http_info(graphic_id, opts)
  return data
end

#get_universe_graphics_graphic_id_with_http_info(graphic_id, opts = {}) ⇒ Array<(GetUniverseGraphicsGraphicIdOk, Fixnum, Hash)>

Get graphic information Get information on a graphic — Alternate route: &#x60;/v1/universe/graphics/graphic_id/&#x60; Alternate route: &#x60;/legacy/universe/graphics/graphic_id/&#x60; Alternate route: &#x60;/dev/universe/graphics/graphic_id/&#x60; — This route expires daily at 11:05

Parameters:

  • graphic_id

    graphic_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



488
489
490
491
492
493
494
495
496
497
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
# File 'lib/esi-ruby/api/universe_api.rb', line 488

def get_universe_graphics_graphic_id_with_http_info(graphic_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_graphics_graphic_id ..."
  end
  # verify the required parameter 'graphic_id' is set
  fail ArgumentError, "Missing the required parameter 'graphic_id' when calling UniverseApi.get_universe_graphics_graphic_id" if graphic_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 = "/universe/graphics/{graphic_id}/".sub('{format}','json').sub('{' + 'graphic_id' + '}', graphic_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 => 'GetUniverseGraphicsGraphicIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_graphics_graphic_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_graphics_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

Get graphics Get a list of graphics — Alternate route: &#x60;/v1/universe/graphics/&#x60; Alternate route: &#x60;/legacy/universe/graphics/&#x60; Alternate route: &#x60;/dev/universe/graphics/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



427
428
429
430
431
432
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
# File 'lib/esi-ruby/api/universe_api.rb', line 427

def get_universe_graphics_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_graphics ..."
  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 = "/universe/graphics/".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 = 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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_graphics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_groups(opts = {}) ⇒ Array<Integer>

Get item groups Get a list of item groups — Alternate route: ‘/v1/universe/groups/` Alternate route: `/legacy/universe/groups/` Alternate route: `/dev/universe/groups/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :page (Integer)

    Which page of results to return (default to 1)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


538
539
540
541
# File 'lib/esi-ruby/api/universe_api.rb', line 538

def get_universe_groups(opts = {})
  data, _status_code, _headers = get_universe_groups_with_http_info(opts)
  return data
end

#get_universe_groups_group_id(group_id, opts = {}) ⇒ GetUniverseGroupsGroupIdOk

Get item group information Get information on an item group — Alternate route: ‘/v1/universe/groups/group_id/` Alternate route: `/legacy/universe/groups/group_id/` Alternate route: `/dev/universe/groups/group_id/` — This route expires daily at 11:05

Parameters:

  • group_id

    An Eve item group ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



601
602
603
604
# File 'lib/esi-ruby/api/universe_api.rb', line 601

def get_universe_groups_group_id(group_id, opts = {})
  data, _status_code, _headers = get_universe_groups_group_id_with_http_info(group_id, opts)
  return data
end

#get_universe_groups_group_id_with_http_info(group_id, opts = {}) ⇒ Array<(GetUniverseGroupsGroupIdOk, Fixnum, Hash)>

Get item group information Get information on an item group — Alternate route: &#x60;/v1/universe/groups/group_id/&#x60; Alternate route: &#x60;/legacy/universe/groups/group_id/&#x60; Alternate route: &#x60;/dev/universe/groups/group_id/&#x60; — This route expires daily at 11:05

Parameters:

  • group_id

    An Eve item group ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(GetUniverseGroupsGroupIdOk, Fixnum, Hash)>)

    GetUniverseGroupsGroupIdOk data, response status code and response headers



615
616
617
618
619
620
621
622
623
624
625
626
627
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
# File 'lib/esi-ruby/api/universe_api.rb', line 615

def get_universe_groups_group_id_with_http_info(group_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_groups_group_id ..."
  end
  # verify the required parameter 'group_id' is set
  fail ArgumentError, "Missing the required parameter 'group_id' when calling UniverseApi.get_universe_groups_group_id" if group_id.nil?
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/groups/{group_id}/".sub('{format}','json').sub('{' + 'group_id' + '}', group_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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 => 'GetUniverseGroupsGroupIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_groups_group_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_groups_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

Get item groups Get a list of item groups — Alternate route: &#x60;/v1/universe/groups/&#x60; Alternate route: &#x60;/legacy/universe/groups/&#x60; Alternate route: &#x60;/dev/universe/groups/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :page (Integer)

    Which page of results to return

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



551
552
553
554
555
556
557
558
559
560
561
562
563
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
# File 'lib/esi-ruby/api/universe_api.rb', line 551

def get_universe_groups_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_groups ..."
  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 = "/universe/groups/".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_moons_moon_id(moon_id, opts = {}) ⇒ GetUniverseMoonsMoonIdOk

Get moon information Get information on a moon — Alternate route: ‘/v1/universe/moons/moon_id/` Alternate route: `/legacy/universe/moons/moon_id/` Alternate route: `/dev/universe/moons/moon_id/` — This route expires daily at 11:05

Parameters:

  • moon_id

    moon_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



669
670
671
672
# File 'lib/esi-ruby/api/universe_api.rb', line 669

def get_universe_moons_moon_id(moon_id, opts = {})
  data, _status_code, _headers = get_universe_moons_moon_id_with_http_info(moon_id, opts)
  return data
end

#get_universe_moons_moon_id_with_http_info(moon_id, opts = {}) ⇒ Array<(GetUniverseMoonsMoonIdOk, Fixnum, Hash)>

Get moon information Get information on a moon — Alternate route: &#x60;/v1/universe/moons/moon_id/&#x60; Alternate route: &#x60;/legacy/universe/moons/moon_id/&#x60; Alternate route: &#x60;/dev/universe/moons/moon_id/&#x60; — This route expires daily at 11:05

Parameters:

  • moon_id

    moon_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(GetUniverseMoonsMoonIdOk, Fixnum, Hash)>)

    GetUniverseMoonsMoonIdOk data, response status code and response headers



682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'lib/esi-ruby/api/universe_api.rb', line 682

def get_universe_moons_moon_id_with_http_info(moon_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_moons_moon_id ..."
  end
  # verify the required parameter 'moon_id' is set
  fail ArgumentError, "Missing the required parameter 'moon_id' when calling UniverseApi.get_universe_moons_moon_id" if moon_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 = "/universe/moons/{moon_id}/".sub('{format}','json').sub('{' + 'moon_id' + '}', moon_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 => 'GetUniverseMoonsMoonIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_moons_moon_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_planets_planet_id(planet_id, opts = {}) ⇒ GetUniversePlanetsPlanetIdOk

Get planet information Get information on a planet — Alternate route: ‘/v1/universe/planets/planet_id/` Alternate route: `/legacy/universe/planets/planet_id/` Alternate route: `/dev/universe/planets/planet_id/` — This route expires daily at 11:05

Parameters:

  • planet_id

    planet_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



732
733
734
735
# File 'lib/esi-ruby/api/universe_api.rb', line 732

def get_universe_planets_planet_id(planet_id, opts = {})
  data, _status_code, _headers = get_universe_planets_planet_id_with_http_info(planet_id, opts)
  return data
end

#get_universe_planets_planet_id_with_http_info(planet_id, opts = {}) ⇒ Array<(GetUniversePlanetsPlanetIdOk, Fixnum, Hash)>

Get planet information Get information on a planet — Alternate route: &#x60;/v1/universe/planets/planet_id/&#x60; Alternate route: &#x60;/legacy/universe/planets/planet_id/&#x60; Alternate route: &#x60;/dev/universe/planets/planet_id/&#x60; — This route expires daily at 11:05

Parameters:

  • planet_id

    planet_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
# File 'lib/esi-ruby/api/universe_api.rb', line 745

def get_universe_planets_planet_id_with_http_info(planet_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_planets_planet_id ..."
  end
  # verify the required parameter 'planet_id' is set
  fail ArgumentError, "Missing the required parameter 'planet_id' when calling UniverseApi.get_universe_planets_planet_id" if planet_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 = "/universe/planets/{planet_id}/".sub('{format}','json').sub('{' + 'planet_id' + '}', planet_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 => 'GetUniversePlanetsPlanetIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_planets_planet_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_races(opts = {}) ⇒ Array<GetUniverseRaces200Ok>

Get character races Get a list of character races — Alternate route: ‘/v1/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/dev/universe/races/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



795
796
797
798
# File 'lib/esi-ruby/api/universe_api.rb', line 795

def get_universe_races(opts = {})
  data, _status_code, _headers = get_universe_races_with_http_info(opts)
  return data
end

#get_universe_races_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseRaces200Ok>, Fixnum, Hash)>

Get character races Get a list of character races — Alternate route: &#x60;/v1/universe/races/&#x60; Alternate route: &#x60;/legacy/universe/races/&#x60; Alternate route: &#x60;/dev/universe/races/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<GetUniverseRaces200Ok>, Fixnum, Hash)>)

    Array<GetUniverseRaces200Ok> data, response status code and response headers



808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
# File 'lib/esi-ruby/api/universe_api.rb', line 808

def get_universe_races_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_races ..."
  end
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/races/".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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<GetUniverseRaces200Ok>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_races\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_regions(opts = {}) ⇒ Array<Integer>

Get regions Get a list of regions — Alternate route: ‘/v1/universe/regions/` Alternate route: `/legacy/universe/regions/` Alternate route: `/dev/universe/regions/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


859
860
861
862
# File 'lib/esi-ruby/api/universe_api.rb', line 859

def get_universe_regions(opts = {})
  data, _status_code, _headers = get_universe_regions_with_http_info(opts)
  return data
end

#get_universe_regions_region_id(region_id, opts = {}) ⇒ GetUniverseRegionsRegionIdOk

Get region information Get information on a region — Alternate route: ‘/v1/universe/regions/region_id/` Alternate route: `/legacy/universe/regions/region_id/` Alternate route: `/dev/universe/regions/region_id/` — This route expires daily at 11:05

Parameters:

  • region_id

    region_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



920
921
922
923
# File 'lib/esi-ruby/api/universe_api.rb', line 920

def get_universe_regions_region_id(region_id, opts = {})
  data, _status_code, _headers = get_universe_regions_region_id_with_http_info(region_id, opts)
  return data
end

#get_universe_regions_region_id_with_http_info(region_id, opts = {}) ⇒ Array<(GetUniverseRegionsRegionIdOk, Fixnum, Hash)>

Get region information Get information on a region — Alternate route: &#x60;/v1/universe/regions/region_id/&#x60; Alternate route: &#x60;/legacy/universe/regions/region_id/&#x60; Alternate route: &#x60;/dev/universe/regions/region_id/&#x60; — This route expires daily at 11:05

Parameters:

  • region_id

    region_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
# File 'lib/esi-ruby/api/universe_api.rb', line 934

def get_universe_regions_region_id_with_http_info(region_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_regions_region_id ..."
  end
  # verify the required parameter 'region_id' is set
  fail ArgumentError, "Missing the required parameter 'region_id' when calling UniverseApi.get_universe_regions_region_id" if region_id.nil?
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/regions/{region_id}/".sub('{format}','json').sub('{' + 'region_id' + '}', region_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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 => 'GetUniverseRegionsRegionIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_regions_region_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_regions_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

Get regions Get a list of regions — Alternate route: &#x60;/v1/universe/regions/&#x60; Alternate route: &#x60;/legacy/universe/regions/&#x60; Alternate route: &#x60;/dev/universe/regions/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
# File 'lib/esi-ruby/api/universe_api.rb', line 871

def get_universe_regions_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_regions ..."
  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 = "/universe/regions/".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 = 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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_stargates_stargate_id(stargate_id, opts = {}) ⇒ GetUniverseStargatesStargateIdOk

Get stargate information Get information on a stargate — Alternate route: ‘/v1/universe/stargates/stargate_id/` Alternate route: `/legacy/universe/stargates/stargate_id/` Alternate route: `/dev/universe/stargates/stargate_id/` — This route expires daily at 11:05

Parameters:

  • stargate_id

    stargate_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



988
989
990
991
# File 'lib/esi-ruby/api/universe_api.rb', line 988

def get_universe_stargates_stargate_id(stargate_id, opts = {})
  data, _status_code, _headers = get_universe_stargates_stargate_id_with_http_info(stargate_id, opts)
  return data
end

#get_universe_stargates_stargate_id_with_http_info(stargate_id, opts = {}) ⇒ Array<(GetUniverseStargatesStargateIdOk, Fixnum, Hash)>

Get stargate information Get information on a stargate — Alternate route: &#x60;/v1/universe/stargates/stargate_id/&#x60; Alternate route: &#x60;/legacy/universe/stargates/stargate_id/&#x60; Alternate route: &#x60;/dev/universe/stargates/stargate_id/&#x60; — This route expires daily at 11:05

Parameters:

  • stargate_id

    stargate_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'lib/esi-ruby/api/universe_api.rb', line 1001

def get_universe_stargates_stargate_id_with_http_info(stargate_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_stargates_stargate_id ..."
  end
  # verify the required parameter 'stargate_id' is set
  fail ArgumentError, "Missing the required parameter 'stargate_id' when calling UniverseApi.get_universe_stargates_stargate_id" if stargate_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 = "/universe/stargates/{stargate_id}/".sub('{format}','json').sub('{' + 'stargate_id' + '}', stargate_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 => 'GetUniverseStargatesStargateIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_stargates_stargate_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_stations_station_id(station_id, opts = {}) ⇒ GetUniverseStationsStationIdOk

Get station information Get information on a station — Alternate route: ‘/v2/universe/stations/station_id/` Alternate route: `/dev/universe/stations/station_id/` — This route is cached for up to 300 seconds

Parameters:

  • station_id

    station_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1051
1052
1053
1054
# File 'lib/esi-ruby/api/universe_api.rb', line 1051

def get_universe_stations_station_id(station_id, opts = {})
  data, _status_code, _headers = get_universe_stations_station_id_with_http_info(station_id, opts)
  return data
end

#get_universe_stations_station_id_with_http_info(station_id, opts = {}) ⇒ Array<(GetUniverseStationsStationIdOk, Fixnum, Hash)>

Get station information Get information on a station — Alternate route: &#x60;/v2/universe/stations/station_id/&#x60; Alternate route: &#x60;/dev/universe/stations/station_id/&#x60; — This route is cached for up to 300 seconds

Parameters:

  • station_id

    station_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
# File 'lib/esi-ruby/api/universe_api.rb', line 1064

def get_universe_stations_station_id_with_http_info(station_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_stations_station_id ..."
  end
  # verify the required parameter 'station_id' is set
  fail ArgumentError, "Missing the required parameter 'station_id' when calling UniverseApi.get_universe_stations_station_id" if station_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 = "/universe/stations/{station_id}/".sub('{format}','json').sub('{' + 'station_id' + '}', station_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 => 'GetUniverseStationsStationIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_stations_station_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_structures(opts = {}) ⇒ Array<Integer>

List all public structures List all public structures — Alternate route: ‘/v1/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/dev/universe/structures/` — This route is cached for up to 3600 seconds

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


1113
1114
1115
1116
# File 'lib/esi-ruby/api/universe_api.rb', line 1113

def get_universe_structures(opts = {})
  data, _status_code, _headers = get_universe_structures_with_http_info(opts)
  return data
end

#get_universe_structures_structure_id(structure_id, opts = {}) ⇒ GetUniverseStructuresStructureIdOk

Get structure information Returns information on requested structure, if you are on the ACL. Otherwise, returns "Forbidden" for all inputs. — Alternate route: ‘/v1/universe/structures/structure_id/` Alternate route: `/legacy/universe/structures/structure_id/` Alternate route: `/dev/universe/structures/structure_id/` — This route is cached for up to 3600 seconds

Parameters:

  • structure_id

    An Eve structure ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :token (String)

    Access token to use if unable to set a header

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1174
1175
1176
1177
# File 'lib/esi-ruby/api/universe_api.rb', line 1174

def get_universe_structures_structure_id(structure_id, opts = {})
  data, _status_code, _headers = get_universe_structures_structure_id_with_http_info(structure_id, opts)
  return data
end

#get_universe_structures_structure_id_with_http_info(structure_id, opts = {}) ⇒ Array<(GetUniverseStructuresStructureIdOk, Fixnum, Hash)>

Get structure information Returns information on requested structure, if you are on the ACL. Otherwise, returns &quot;Forbidden&quot; for all inputs. — Alternate route: &#x60;/v1/universe/structures/structure_id/&#x60; Alternate route: &#x60;/legacy/universe/structures/structure_id/&#x60; Alternate route: &#x60;/dev/universe/structures/structure_id/&#x60; — This route is cached for up to 3600 seconds

Parameters:

  • structure_id

    An Eve structure ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :token (String)

    Access token to use if unable to set a header

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
# File 'lib/esi-ruby/api/universe_api.rb', line 1188

def get_universe_structures_structure_id_with_http_info(structure_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_structures_structure_id ..."
  end
  # verify the required parameter 'structure_id' is set
  fail ArgumentError, "Missing the required parameter 'structure_id' when calling UniverseApi.get_universe_structures_structure_id" if structure_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 = "/universe/structures/{structure_id}/".sub('{format}','json').sub('{' + 'structure_id' + '}', structure_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 => 'GetUniverseStructuresStructureIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_structures_structure_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_structures_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

List all public structures List all public structures — Alternate route: &#x60;/v1/universe/structures/&#x60; Alternate route: &#x60;/legacy/universe/structures/&#x60; Alternate route: &#x60;/dev/universe/structures/&#x60; — This route is cached for up to 3600 seconds

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
# File 'lib/esi-ruby/api/universe_api.rb', line 1125

def get_universe_structures_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_structures ..."
  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 = "/universe/structures/".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 = 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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_structures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_system_jumps(opts = {}) ⇒ Array<GetUniverseSystemJumps200Ok>

Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed — Alternate route: ‘/v1/universe/system_jumps/` Alternate route: `/legacy/universe/system_jumps/` Alternate route: `/dev/universe/system_jumps/` — This route is cached for up to 3600 seconds

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1238
1239
1240
1241
# File 'lib/esi-ruby/api/universe_api.rb', line 1238

def get_universe_system_jumps(opts = {})
  data, _status_code, _headers = get_universe_system_jumps_with_http_info(opts)
  return data
end

#get_universe_system_jumps_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseSystemJumps200Ok>, Fixnum, Hash)>

Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed — Alternate route: &#x60;/v1/universe/system_jumps/&#x60; Alternate route: &#x60;/legacy/universe/system_jumps/&#x60; Alternate route: &#x60;/dev/universe/system_jumps/&#x60; — This route is cached for up to 3600 seconds

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<GetUniverseSystemJumps200Ok>, Fixnum, Hash)>)

    Array<GetUniverseSystemJumps200Ok> data, response status code and response headers



1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
# File 'lib/esi-ruby/api/universe_api.rb', line 1250

def get_universe_system_jumps_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_system_jumps ..."
  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 = "/universe/system_jumps/".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 = 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<GetUniverseSystemJumps200Ok>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_system_jumps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_system_kills(opts = {}) ⇒ Array<GetUniverseSystemKills200Ok>

Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed — Alternate route: ‘/v1/universe/system_kills/` Alternate route: `/legacy/universe/system_kills/` — This route is cached for up to 3600 seconds

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1297
1298
1299
1300
# File 'lib/esi-ruby/api/universe_api.rb', line 1297

def get_universe_system_kills(opts = {})
  data, _status_code, _headers = get_universe_system_kills_with_http_info(opts)
  return data
end

#get_universe_system_kills_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseSystemKills200Ok>, Fixnum, Hash)>

Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed — Alternate route: &#x60;/v1/universe/system_kills/&#x60; Alternate route: &#x60;/legacy/universe/system_kills/&#x60; — This route is cached for up to 3600 seconds

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<GetUniverseSystemKills200Ok>, Fixnum, Hash)>)

    Array<GetUniverseSystemKills200Ok> data, response status code and response headers



1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
# File 'lib/esi-ruby/api/universe_api.rb', line 1309

def get_universe_system_kills_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_system_kills ..."
  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 = "/universe/system_kills/".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 = 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<GetUniverseSystemKills200Ok>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_system_kills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_systems(opts = {}) ⇒ Array<Integer>

Get solar systems Get a list of solar systems — Alternate route: ‘/v1/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/dev/universe/systems/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


1356
1357
1358
1359
# File 'lib/esi-ruby/api/universe_api.rb', line 1356

def get_universe_systems(opts = {})
  data, _status_code, _headers = get_universe_systems_with_http_info(opts)
  return data
end

#get_universe_systems_system_id(system_id, opts = {}) ⇒ GetUniverseSystemsSystemIdOk

Get solar system information Get information on a solar system — Alternate route: ‘/v2/universe/systems/system_id/` — This route expires daily at 11:05

Parameters:

  • system_id

    system_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1417
1418
1419
1420
# File 'lib/esi-ruby/api/universe_api.rb', line 1417

def get_universe_systems_system_id(system_id, opts = {})
  data, _status_code, _headers = get_universe_systems_system_id_with_http_info(system_id, opts)
  return data
end

#get_universe_systems_system_id_with_http_info(system_id, opts = {}) ⇒ Array<(GetUniverseSystemsSystemIdOk, Fixnum, Hash)>

Get solar system information Get information on a solar system — Alternate route: &#x60;/v2/universe/systems/system_id/&#x60; — This route expires daily at 11:05

Parameters:

  • system_id

    system_id integer

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
# File 'lib/esi-ruby/api/universe_api.rb', line 1431

def get_universe_systems_system_id_with_http_info(system_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_systems_system_id ..."
  end
  # verify the required parameter 'system_id' is set
  fail ArgumentError, "Missing the required parameter 'system_id' when calling UniverseApi.get_universe_systems_system_id" if system_id.nil?
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/systems/{system_id}/".sub('{format}','json').sub('{' + 'system_id' + '}', system_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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 => 'GetUniverseSystemsSystemIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_systems_system_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_systems_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

Get solar systems Get a list of solar systems — Alternate route: &#x60;/v1/universe/systems/&#x60; Alternate route: &#x60;/legacy/universe/systems/&#x60; Alternate route: &#x60;/dev/universe/systems/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
# File 'lib/esi-ruby/api/universe_api.rb', line 1368

def get_universe_systems_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_systems ..."
  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 = "/universe/systems/".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 = 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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_systems\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_types(opts = {}) ⇒ Array<Integer>

Get types Get a list of type ids — Alternate route: ‘/v1/universe/types/` Alternate route: `/legacy/universe/types/` Alternate route: `/dev/universe/types/` — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :page (Integer)

    Which page of results to return (default to 1)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<Integer>)


1485
1486
1487
1488
# File 'lib/esi-ruby/api/universe_api.rb', line 1485

def get_universe_types(opts = {})
  data, _status_code, _headers = get_universe_types_with_http_info(opts)
  return data
end

#get_universe_types_type_id(type_id, opts = {}) ⇒ GetUniverseTypesTypeIdOk

Get type information Get information on a type — Alternate route: ‘/v2/universe/types/type_id/` — This route expires daily at 11:05

Parameters:

  • type_id

    An Eve item type ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :language (String)

    Language to use in the response (default to en-us)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1548
1549
1550
1551
# File 'lib/esi-ruby/api/universe_api.rb', line 1548

def get_universe_types_type_id(type_id, opts = {})
  data, _status_code, _headers = get_universe_types_type_id_with_http_info(type_id, opts)
  return data
end

#get_universe_types_type_id_with_http_info(type_id, opts = {}) ⇒ Array<(GetUniverseTypesTypeIdOk, Fixnum, Hash)>

Get type information Get information on a type — Alternate route: &#x60;/v2/universe/types/type_id/&#x60; — This route expires daily at 11:05

Parameters:

  • type_id

    An Eve item type ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :language (String)

    Language to use in the response

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(GetUniverseTypesTypeIdOk, Fixnum, Hash)>)

    GetUniverseTypesTypeIdOk data, response status code and response headers



1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
# File 'lib/esi-ruby/api/universe_api.rb', line 1562

def get_universe_types_type_id_with_http_info(type_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_types_type_id ..."
  end
  # verify the required parameter 'type_id' is set
  fail ArgumentError, "Missing the required parameter 'type_id' when calling UniverseApi.get_universe_types_type_id" if type_id.nil?
  if opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource'])
    fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity'
  end
  if opts[:'language'] && !['de', 'en-us', 'fr', 'ja', 'ru', 'zh'].include?(opts[:'language'])
    fail ArgumentError, 'invalid value for "language", must be one of de, en-us, fr, ja, ru, zh'
  end
  # resource path
  local_var_path = "/universe/types/{type_id}/".sub('{format}','json').sub('{' + 'type_id' + '}', type_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'language'] = opts[:'language'] if !opts[:'language'].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 => 'GetUniverseTypesTypeIdOk')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_types_type_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_universe_types_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>

Get types Get a list of type ids — Alternate route: &#x60;/v1/universe/types/&#x60; Alternate route: &#x60;/legacy/universe/types/&#x60; Alternate route: &#x60;/dev/universe/types/&#x60; — This route expires daily at 11:05

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :page (Integer)

    Which page of results to return

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<Integer>, Fixnum, Hash)>)

    Array<Integer> data, response status code and response headers



1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
# File 'lib/esi-ruby/api/universe_api.rb', line 1498

def get_universe_types_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.get_universe_types ..."
  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 = "/universe/types/".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil?
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].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<Integer>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#get_universe_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_universe_names(ids, opts = {}) ⇒ Array<PostUniverseNames200Ok>

Get names and categories for a set of ID’s Resolve a set of IDs to names and categories. Supported ID’s for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types. — Alternate route: ‘/v2/universe/names/` Alternate route: `/dev/universe/names/`

Parameters:

  • ids

    The ids to resolve

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from (default to tranquility)

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:



1616
1617
1618
1619
# File 'lib/esi-ruby/api/universe_api.rb', line 1616

def post_universe_names(ids, opts = {})
  data, _status_code, _headers = post_universe_names_with_http_info(ids, opts)
  return data
end

#post_universe_names_with_http_info(ids, opts = {}) ⇒ Array<(Array<PostUniverseNames200Ok>, Fixnum, Hash)>

Get names and categories for a set of ID&#39;s Resolve a set of IDs to names and categories. Supported ID&#39;s for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types. — Alternate route: &#x60;/v2/universe/names/&#x60; Alternate route: &#x60;/dev/universe/names/&#x60;

Parameters:

  • ids

    The ids to resolve

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :datasource (String)

    The server name you would like data from

  • :user_agent (String)

    Client identifier, takes precedence over headers

  • :x_user_agent (String)

    Client identifier, takes precedence over User-Agent

Returns:

  • (Array<(Array<PostUniverseNames200Ok>, Fixnum, Hash)>)

    Array<PostUniverseNames200Ok> data, response status code and response headers



1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
# File 'lib/esi-ruby/api/universe_api.rb', line 1629

def post_universe_names_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: UniverseApi.post_universe_names ..."
  end
  # verify the required parameter 'ids' is set
  fail ArgumentError, "Missing the required parameter 'ids' when calling UniverseApi.post_universe_names" if ids.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 = "/universe/names/".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(ids)
  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<PostUniverseNames200Ok>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: UniverseApi#post_universe_names\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end