class EsiClient::UniverseApi
Attributes
Public Class Methods
# File lib/esi-ruby/api/universe_api.rb, line 18 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<GetUniverseBloodlines200Ok>]
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<GetUniverseBloodlines200Ok>, Fixnum, Hash)>] Array<GetUniverseBloodlines200Ok> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 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 @param category_id An Eve item category ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseCategoriesCategoryIdOk]
# 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 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 @param category_id An Eve item category ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseCategoriesCategoryIdOk
, Fixnum, Hash)>] GetUniverseCategoriesCategoryIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 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 @param constellation_id constellation_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseConstellationsConstellationIdOk]
# 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 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 @param constellation_id constellation_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseConstellationsConstellationIdOk
, Fixnum, Hash)>] GetUniverseConstellationsConstellationIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<GetUniverseFactions200Ok>]
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<GetUniverseFactions200Ok>, Fixnum, Hash)>] Array<GetUniverseFactions200Ok> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 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 @param graphic_id graphic_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseGraphicsGraphicIdOk]
# 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 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 @param graphic_id graphic_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseGraphicsGraphicIdOk
, Fixnum, Hash)>] GetUniverseGraphicsGraphicIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 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 @param group_id An Eve item group ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseGroupsGroupIdOk]
# 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 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 @param group_id An Eve item group ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseGroupsGroupIdOk
, Fixnum, Hash)>] GetUniverseGroupsGroupIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [Integer] :page Which page of results to return @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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 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 @param moon_id moon_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseMoonsMoonIdOk]
# 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 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 @param moon_id moon_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseMoonsMoonIdOk
, Fixnum, Hash)>] GetUniverseMoonsMoonIdOk
data, response status code and response headers
# 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 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 @param planet_id planet_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniversePlanetsPlanetIdOk]
# 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 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 @param planet_id planet_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniversePlanetsPlanetIdOk
, Fixnum, Hash)>] GetUniversePlanetsPlanetIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<GetUniverseRaces200Ok>]
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<GetUniverseRaces200Ok>, Fixnum, Hash)>] Array<GetUniverseRaces200Ok> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 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 @param region_id region_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseRegionsRegionIdOk]
# 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 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 @param region_id region_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseRegionsRegionIdOk
, Fixnum, Hash)>] GetUniverseRegionsRegionIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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 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 @param stargate_id stargate_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseStargatesStargateIdOk]
# 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 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 @param stargate_id stargate_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseStargatesStargateIdOk
, Fixnum, Hash)>] GetUniverseStargatesStargateIdOk
data, response status code and response headers
# 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 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 @param station_id station_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseStationsStationIdOk]
# 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 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 @param station_id station_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseStationsStationIdOk
, Fixnum, Hash)>] GetUniverseStationsStationIdOk
data, response status code and response headers
# 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
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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 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 @param structure_id An Eve structure ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :token Access token to use if unable to set a header @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseStructuresStructureIdOk]
# 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 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 @param structure_id An Eve structure ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :token Access token to use if unable to set a header @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseStructuresStructureIdOk
, Fixnum, Hash)>] GetUniverseStructuresStructureIdOk
data, response status code and response headers
# 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
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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<GetUniverseSystemJumps200Ok>]
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<GetUniverseSystemJumps200Ok>, Fixnum, Hash)>] Array<GetUniverseSystemJumps200Ok> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<GetUniverseSystemKills200Ok>]
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<GetUniverseSystemKills200Ok>, Fixnum, Hash)>] Array<GetUniverseSystemKills200Ok> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 solar system information Get information on a solar system — Alternate route: `/v2/universe/systems/{system_id}/` — This route expires daily at 11:05 @param system_id system_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseSystemsSystemIdOk]
# 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 solar system information Get information on a solar system — Alternate route: `/v2/universe/systems/{system_id}/` — This route expires daily at 11:05 @param system_id system_id integer @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseSystemsSystemIdOk
, Fixnum, Hash)>] GetUniverseSystemsSystemIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [Integer] :page Which page of results to return (default to 1) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<Integer>]
# 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 type information Get information on a type — Alternate route: `/v2/universe/types/{type_id}/` — This route expires daily at 11:05 @param type_id An Eve item type ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :language Language to use in the response (default to en-us) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [GetUniverseTypesTypeIdOk]
# 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 type information Get information on a type — Alternate route: `/v2/universe/types/{type_id}/` — This route expires daily at 11:05 @param type_id An Eve item type ID @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :language Language to use in the response @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(GetUniverseTypesTypeIdOk
, Fixnum, Hash)>] GetUniverseTypesTypeIdOk
data, response status code and response headers
# 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 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 @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [Integer] :page Which page of results to return @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<Integer>, Fixnum, Hash)>] Array<Integer> data, response status code and response headers
# 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
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/` @param ids The ids to resolve @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from (default to tranquility) @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<PostUniverseNames200Ok>]
# 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
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/` @param ids The ids to resolve @param [Hash] opts the optional parameters @option opts [String] :datasource The server name you would like data from @option opts [String] :user_agent Client identifier, takes precedence over headers @option opts [String] :x_user_agent Client identifier, takes precedence over User-Agent @return [Array<(Array<PostUniverseNames200Ok>, Fixnum, Hash)>] Array<PostUniverseNames200Ok> data, response status code and response headers
# 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