Class: ESIClient::UniverseApi
- Inherits:
-
Object
- Object
- ESIClient::UniverseApi
- Defined in:
- lib/esi_client/api/universe_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_universe_ancestries(opts = {}) ⇒ Array<GetUniverseAncestries200Ok>
Get ancestries Get all character ancestries — This route expires daily at 11:05.
-
#get_universe_ancestries_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseAncestries200Ok>, Fixnum, Hash)>
Get ancestries Get all character ancestries — This route expires daily at 11:05.
-
#get_universe_bloodlines(opts = {}) ⇒ Array<GetUniverseBloodlines200Ok>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05.
-
#get_universe_bloodlines_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseBloodlines200Ok>, Fixnum, Hash)>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05.
-
#get_universe_categories(opts = {}) ⇒ Array<Integer>
Get item categories Get a list of item categories — This route expires daily at 11:05.
-
#get_universe_categories_category_id(category_id, opts = {}) ⇒ GetUniverseCategoriesCategoryIdOk
Get item category information Get information of an item category — This route expires daily at 11:05.
-
#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 — This route expires daily at 11:05.
-
#get_universe_categories_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get item categories Get a list of item categories — This route expires daily at 11:05.
-
#get_universe_constellations(opts = {}) ⇒ Array<Integer>
Get constellations Get a list of constellations — This route expires daily at 11:05.
-
#get_universe_constellations_constellation_id(constellation_id, opts = {}) ⇒ GetUniverseConstellationsConstellationIdOk
Get constellation information Get information on a constellation — This route expires daily at 11:05.
-
#get_universe_constellations_constellation_id_with_http_info(constellation_id, opts = {}) ⇒ Array<(GetUniverseConstellationsConstellationIdOk, Fixnum, Hash)>
Get constellation information Get information on a constellation — This route expires daily at 11:05.
-
#get_universe_constellations_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get constellations Get a list of constellations — This route expires daily at 11:05.
-
#get_universe_factions(opts = {}) ⇒ Array<GetUniverseFactions200Ok>
Get factions Get a list of factions — This route expires daily at 11:05.
-
#get_universe_factions_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseFactions200Ok>, Fixnum, Hash)>
Get factions Get a list of factions — This route expires daily at 11:05.
-
#get_universe_graphics(opts = {}) ⇒ Array<Integer>
Get graphics Get a list of graphics — This route expires daily at 11:05.
-
#get_universe_graphics_graphic_id(graphic_id, opts = {}) ⇒ GetUniverseGraphicsGraphicIdOk
Get graphic information Get information on a graphic — This route expires daily at 11:05.
-
#get_universe_graphics_graphic_id_with_http_info(graphic_id, opts = {}) ⇒ Array<(GetUniverseGraphicsGraphicIdOk, Fixnum, Hash)>
Get graphic information Get information on a graphic — This route expires daily at 11:05.
-
#get_universe_graphics_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get graphics Get a list of graphics — This route expires daily at 11:05.
-
#get_universe_groups(opts = {}) ⇒ Array<Integer>
Get item groups Get a list of item groups — This route expires daily at 11:05.
-
#get_universe_groups_group_id(group_id, opts = {}) ⇒ GetUniverseGroupsGroupIdOk
Get item group information Get information on an item group — This route expires daily at 11:05.
-
#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 — This route expires daily at 11:05.
-
#get_universe_groups_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get item groups Get a list of item groups — This route expires daily at 11:05.
-
#get_universe_moons_moon_id(moon_id, opts = {}) ⇒ GetUniverseMoonsMoonIdOk
Get moon information Get information on a moon — This route expires daily at 11:05.
-
#get_universe_moons_moon_id_with_http_info(moon_id, opts = {}) ⇒ Array<(GetUniverseMoonsMoonIdOk, Fixnum, Hash)>
Get moon information Get information on a moon — This route expires daily at 11:05.
-
#get_universe_planets_planet_id(planet_id, opts = {}) ⇒ GetUniversePlanetsPlanetIdOk
Get planet information Get information on a planet — This route expires daily at 11:05.
-
#get_universe_planets_planet_id_with_http_info(planet_id, opts = {}) ⇒ Array<(GetUniversePlanetsPlanetIdOk, Fixnum, Hash)>
Get planet information Get information on a planet — This route expires daily at 11:05.
-
#get_universe_races(opts = {}) ⇒ Array<GetUniverseRaces200Ok>
Get character races Get a list of character races — This route expires daily at 11:05.
-
#get_universe_races_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseRaces200Ok>, Fixnum, Hash)>
Get character races Get a list of character races — This route expires daily at 11:05.
-
#get_universe_regions(opts = {}) ⇒ Array<Integer>
Get regions Get a list of regions — This route expires daily at 11:05.
-
#get_universe_regions_region_id(region_id, opts = {}) ⇒ GetUniverseRegionsRegionIdOk
Get region information Get information on a region — This route expires daily at 11:05.
-
#get_universe_regions_region_id_with_http_info(region_id, opts = {}) ⇒ Array<(GetUniverseRegionsRegionIdOk, Fixnum, Hash)>
Get region information Get information on a region — This route expires daily at 11:05.
-
#get_universe_regions_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get regions Get a list of regions — This route expires daily at 11:05.
-
#get_universe_stargates_stargate_id(stargate_id, opts = {}) ⇒ GetUniverseStargatesStargateIdOk
Get stargate information Get information on a stargate — This route expires daily at 11:05.
-
#get_universe_stargates_stargate_id_with_http_info(stargate_id, opts = {}) ⇒ Array<(GetUniverseStargatesStargateIdOk, Fixnum, Hash)>
Get stargate information Get information on a stargate — This route expires daily at 11:05.
-
#get_universe_stars_star_id(star_id, opts = {}) ⇒ GetUniverseStarsStarIdOk
Get star information Get information on a star — This route expires daily at 11:05.
-
#get_universe_stars_star_id_with_http_info(star_id, opts = {}) ⇒ Array<(GetUniverseStarsStarIdOk, Fixnum, Hash)>
Get star information Get information on a star — This route expires daily at 11:05.
-
#get_universe_stations_station_id(station_id, opts = {}) ⇒ GetUniverseStationsStationIdOk
Get station information Get information on a station — This route is cached for up to 300 seconds.
-
#get_universe_stations_station_id_with_http_info(station_id, opts = {}) ⇒ Array<(GetUniverseStationsStationIdOk, Fixnum, Hash)>
Get station information Get information on a station — This route is cached for up to 300 seconds.
-
#get_universe_structures(opts = {}) ⇒ Array<Integer>
List all public structures List all public structures — This route is cached for up to 3600 seconds.
-
#get_universe_structures_structure_id(structure_id, opts = {}) ⇒ GetUniverseStructuresStructureIdOk
Get structure information Returns information on requested structure, if you are on the ACL.
-
#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.
-
#get_universe_structures_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
List all public structures List all public structures — This route is cached for up to 3600 seconds.
-
#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.
-
#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.
-
#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.
-
#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.
-
#get_universe_systems(opts = {}) ⇒ Array<Integer>
Get solar systems Get a list of solar systems — This route expires daily at 11:05.
-
#get_universe_systems_system_id(system_id, opts = {}) ⇒ GetUniverseSystemsSystemIdOk
Get solar system information Get information on a solar system — This route expires daily at 11:05.
-
#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 — This route expires daily at 11:05.
-
#get_universe_systems_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get solar systems Get a list of solar systems — This route expires daily at 11:05.
-
#get_universe_types(opts = {}) ⇒ Array<Integer>
Get types Get a list of type ids — This route expires daily at 11:05.
-
#get_universe_types_type_id(type_id, opts = {}) ⇒ GetUniverseTypesTypeIdOk
Get type information Get information on a type — This route expires daily at 11:05.
-
#get_universe_types_type_id_with_http_info(type_id, opts = {}) ⇒ Array<(GetUniverseTypesTypeIdOk, Fixnum, Hash)>
Get type information Get information on a type — This route expires daily at 11:05.
-
#get_universe_types_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Fixnum, Hash)>
Get types Get a list of type ids — This route expires daily at 11:05.
-
#initialize(api_client = ApiClient.default) ⇒ UniverseApi
constructor
A new instance of UniverseApi.
-
#post_universe_ids(names, opts = {}) ⇒ PostUniverseIdsOk
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems.
-
#post_universe_ids_with_http_info(names, opts = {}) ⇒ Array<(PostUniverseIdsOk, Fixnum, Hash)>
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems.
-
#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.
-
#post_universe_names_with_http_info(ids, opts = {}) ⇒ Array<(Array<PostUniverseNames200Ok>, Fixnum, Hash)>
Get names and categories for a set of ID's Resolve a set of IDs to names and categories.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ UniverseApi
Returns a new instance of UniverseApi.
19 20 21 |
# File 'lib/esi_client/api/universe_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/esi_client/api/universe_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_universe_ancestries(opts = {}) ⇒ Array<GetUniverseAncestries200Ok>
Get ancestries Get all character ancestries — This route expires daily at 11:05
30 31 32 33 |
# File 'lib/esi_client/api/universe_api.rb', line 30 def get_universe_ancestries(opts = {}) data, _status_code, _headers = get_universe_ancestries_with_http_info(opts) data end |
#get_universe_ancestries_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseAncestries200Ok>, Fixnum, Hash)>
Get ancestries Get all character ancestries — This route expires daily at 11:05
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_client/api/universe_api.rb', line 43 def get_universe_ancestries_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UniverseApi.get_universe_ancestries ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/ancestries/' # 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<GetUniverseAncestries200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_ancestries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_bloodlines(opts = {}) ⇒ Array<GetUniverseBloodlines200Ok>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05
94 95 96 97 |
# File 'lib/esi_client/api/universe_api.rb', line 94 def get_universe_bloodlines(opts = {}) data, _status_code, _headers = get_universe_bloodlines_with_http_info(opts) data end |
#get_universe_bloodlines_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseBloodlines200Ok>, Fixnum, Hash)>
Get bloodlines Get a list of bloodlines — This route expires daily at 11:05
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 145 146 147 148 149 |
# File 'lib/esi_client/api/universe_api.rb', line 107 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 @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/bloodlines/' # 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 — This route expires daily at 11:05
157 158 159 160 |
# File 'lib/esi_client/api/universe_api.rb', line 157 def get_universe_categories(opts = {}) data, _status_code, _headers = get_universe_categories_with_http_info(opts) data end |
#get_universe_categories_category_id(category_id, opts = {}) ⇒ GetUniverseCategoriesCategoryIdOk
Get item category information Get information of an item category — This route expires daily at 11:05
217 218 219 220 |
# File 'lib/esi_client/api/universe_api.rb', line 217 def get_universe_categories_category_id(category_id, opts = {}) data, _status_code, _headers = get_universe_categories_category_id_with_http_info(category_id, opts) 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 — This route expires daily at 11:05
231 232 233 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 273 274 275 276 277 |
# File 'lib/esi_client/api/universe_api.rb', line 231 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 if @api_client.config.client_side_validation && category_id.nil? fail ArgumentError, "Missing the required parameter 'category_id' when calling UniverseApi.get_universe_categories_category_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/categories/{category_id}/'.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 — This route expires daily at 11:05
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 |
# File 'lib/esi_client/api/universe_api.rb', line 169 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 @api_client.config.client_side_validation && 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 = '/v1/universe/categories/' # 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 — This route expires daily at 11:05
285 286 287 288 |
# File 'lib/esi_client/api/universe_api.rb', line 285 def get_universe_constellations(opts = {}) data, _status_code, _headers = get_universe_constellations_with_http_info(opts) data end |
#get_universe_constellations_constellation_id(constellation_id, opts = {}) ⇒ GetUniverseConstellationsConstellationIdOk
Get constellation information Get information on a constellation — This route expires daily at 11:05
345 346 347 348 |
# File 'lib/esi_client/api/universe_api.rb', line 345 def get_universe_constellations_constellation_id(constellation_id, opts = {}) data, _status_code, _headers = get_universe_constellations_constellation_id_with_http_info(constellation_id, opts) 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 — This route expires daily at 11:05
359 360 361 362 363 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 |
# File 'lib/esi_client/api/universe_api.rb', line 359 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 if @api_client.config.client_side_validation && constellation_id.nil? fail ArgumentError, "Missing the required parameter 'constellation_id' when calling UniverseApi.get_universe_constellations_constellation_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/constellations/{constellation_id}/'.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 — This route expires daily at 11:05
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 |
# File 'lib/esi_client/api/universe_api.rb', line 297 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 @api_client.config.client_side_validation && 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 = '/v1/universe/constellations/' # 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 — This route expires daily at 11:05
414 415 416 417 |
# File 'lib/esi_client/api/universe_api.rb', line 414 def get_universe_factions(opts = {}) data, _status_code, _headers = get_universe_factions_with_http_info(opts) data end |
#get_universe_factions_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseFactions200Ok>, Fixnum, Hash)>
Get factions Get a list of factions — This route expires daily at 11:05
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 466 467 468 469 |
# File 'lib/esi_client/api/universe_api.rb', line 427 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 @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v2/universe/factions/' # 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 — This route expires daily at 11:05
477 478 479 480 |
# File 'lib/esi_client/api/universe_api.rb', line 477 def get_universe_graphics(opts = {}) data, _status_code, _headers = get_universe_graphics_with_http_info(opts) data end |
#get_universe_graphics_graphic_id(graphic_id, opts = {}) ⇒ GetUniverseGraphicsGraphicIdOk
Get graphic information Get information on a graphic — This route expires daily at 11:05
536 537 538 539 |
# File 'lib/esi_client/api/universe_api.rb', line 536 def get_universe_graphics_graphic_id(graphic_id, opts = {}) data, _status_code, _headers = get_universe_graphics_graphic_id_with_http_info(graphic_id, opts) 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 — This route expires daily at 11:05
549 550 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 591 |
# File 'lib/esi_client/api/universe_api.rb', line 549 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 if @api_client.config.client_side_validation && graphic_id.nil? fail ArgumentError, "Missing the required parameter 'graphic_id' when calling UniverseApi.get_universe_graphics_graphic_id" end if @api_client.config.client_side_validation && 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 = '/v1/universe/graphics/{graphic_id}/'.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 — This route expires daily at 11:05
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 |
# File 'lib/esi_client/api/universe_api.rb', line 489 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 @api_client.config.client_side_validation && 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 = '/v1/universe/graphics/' # 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 — This route expires daily at 11:05
600 601 602 603 |
# File 'lib/esi_client/api/universe_api.rb', line 600 def get_universe_groups(opts = {}) data, _status_code, _headers = get_universe_groups_with_http_info(opts) data end |
#get_universe_groups_group_id(group_id, opts = {}) ⇒ GetUniverseGroupsGroupIdOk
Get item group information Get information on an item group — This route expires daily at 11:05
662 663 664 665 |
# File 'lib/esi_client/api/universe_api.rb', line 662 def get_universe_groups_group_id(group_id, opts = {}) data, _status_code, _headers = get_universe_groups_group_id_with_http_info(group_id, opts) 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 — This route expires daily at 11:05
676 677 678 679 680 681 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_client/api/universe_api.rb', line 676 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 if @api_client.config.client_side_validation && group_id.nil? fail ArgumentError, "Missing the required parameter 'group_id' when calling UniverseApi.get_universe_groups_group_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/groups/{group_id}/'.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 — This route expires daily at 11:05
613 614 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 |
# File 'lib/esi_client/api/universe_api.rb', line 613 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 @api_client.config.client_side_validation && 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 = '/v1/universe/groups/' # 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 — This route expires daily at 11:05
731 732 733 734 |
# File 'lib/esi_client/api/universe_api.rb', line 731 def get_universe_moons_moon_id(moon_id, opts = {}) data, _status_code, _headers = get_universe_moons_moon_id_with_http_info(moon_id, opts) 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 — This route expires daily at 11:05
744 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 786 |
# File 'lib/esi_client/api/universe_api.rb', line 744 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 if @api_client.config.client_side_validation && moon_id.nil? fail ArgumentError, "Missing the required parameter 'moon_id' when calling UniverseApi.get_universe_moons_moon_id" end if @api_client.config.client_side_validation && 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 = '/v1/universe/moons/{moon_id}/'.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 — This route expires daily at 11:05
795 796 797 798 |
# File 'lib/esi_client/api/universe_api.rb', line 795 def get_universe_planets_planet_id(planet_id, opts = {}) data, _status_code, _headers = get_universe_planets_planet_id_with_http_info(planet_id, opts) 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 — This route expires daily at 11:05
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_client/api/universe_api.rb', line 808 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 if @api_client.config.client_side_validation && planet_id.nil? fail ArgumentError, "Missing the required parameter 'planet_id' when calling UniverseApi.get_universe_planets_planet_id" end if @api_client.config.client_side_validation && 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 = '/v1/universe/planets/{planet_id}/'.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 — This route expires daily at 11:05
859 860 861 862 |
# File 'lib/esi_client/api/universe_api.rb', line 859 def get_universe_races(opts = {}) data, _status_code, _headers = get_universe_races_with_http_info(opts) data end |
#get_universe_races_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseRaces200Ok>, Fixnum, Hash)>
Get character races Get a list of character races — This route expires daily at 11:05
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 910 911 912 913 914 |
# File 'lib/esi_client/api/universe_api.rb', line 872 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 @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/races/' # 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 — This route expires daily at 11:05
922 923 924 925 |
# File 'lib/esi_client/api/universe_api.rb', line 922 def get_universe_regions(opts = {}) data, _status_code, _headers = get_universe_regions_with_http_info(opts) data end |
#get_universe_regions_region_id(region_id, opts = {}) ⇒ GetUniverseRegionsRegionIdOk
Get region information Get information on a region — This route expires daily at 11:05
982 983 984 985 |
# File 'lib/esi_client/api/universe_api.rb', line 982 def get_universe_regions_region_id(region_id, opts = {}) data, _status_code, _headers = get_universe_regions_region_id_with_http_info(region_id, opts) 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 — This route expires daily at 11:05
996 997 998 999 1000 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 1042 |
# File 'lib/esi_client/api/universe_api.rb', line 996 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 if @api_client.config.client_side_validation && region_id.nil? fail ArgumentError, "Missing the required parameter 'region_id' when calling UniverseApi.get_universe_regions_region_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/regions/{region_id}/'.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 — This route expires daily at 11:05
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 |
# File 'lib/esi_client/api/universe_api.rb', line 934 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 @api_client.config.client_side_validation && 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 = '/v1/universe/regions/' # 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 — This route expires daily at 11:05
1051 1052 1053 1054 |
# File 'lib/esi_client/api/universe_api.rb', line 1051 def get_universe_stargates_stargate_id(stargate_id, opts = {}) data, _status_code, _headers = get_universe_stargates_stargate_id_with_http_info(stargate_id, opts) 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 — This route expires daily at 11:05
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 1105 1106 |
# File 'lib/esi_client/api/universe_api.rb', line 1064 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 if @api_client.config.client_side_validation && stargate_id.nil? fail ArgumentError, "Missing the required parameter 'stargate_id' when calling UniverseApi.get_universe_stargates_stargate_id" end if @api_client.config.client_side_validation && 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 = '/v1/universe/stargates/{stargate_id}/'.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_stars_star_id(star_id, opts = {}) ⇒ GetUniverseStarsStarIdOk
Get star information Get information on a star — This route expires daily at 11:05
1115 1116 1117 1118 |
# File 'lib/esi_client/api/universe_api.rb', line 1115 def get_universe_stars_star_id(star_id, opts = {}) data, _status_code, _headers = get_universe_stars_star_id_with_http_info(star_id, opts) data end |
#get_universe_stars_star_id_with_http_info(star_id, opts = {}) ⇒ Array<(GetUniverseStarsStarIdOk, Fixnum, Hash)>
Get star information Get information on a star — This route expires daily at 11:05
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 1164 1165 1166 1167 1168 1169 1170 |
# File 'lib/esi_client/api/universe_api.rb', line 1128 def get_universe_stars_star_id_with_http_info(star_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UniverseApi.get_universe_stars_star_id ...' end # verify the required parameter 'star_id' is set if @api_client.config.client_side_validation && star_id.nil? fail ArgumentError, "Missing the required parameter 'star_id' when calling UniverseApi.get_universe_stars_star_id" end if @api_client.config.client_side_validation && 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 = '/v1/universe/stars/{star_id}/'.sub('{' + 'star_id' + '}', star_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 => 'GetUniverseStarsStarIdOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_stars_star_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 — This route is cached for up to 300 seconds
1179 1180 1181 1182 |
# File 'lib/esi_client/api/universe_api.rb', line 1179 def get_universe_stations_station_id(station_id, opts = {}) data, _status_code, _headers = get_universe_stations_station_id_with_http_info(station_id, opts) 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 — This route is cached for up to 300 seconds
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 1230 1231 1232 1233 1234 |
# File 'lib/esi_client/api/universe_api.rb', line 1192 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 if @api_client.config.client_side_validation && station_id.nil? fail ArgumentError, "Missing the required parameter 'station_id' when calling UniverseApi.get_universe_stations_station_id" end if @api_client.config.client_side_validation && 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 = '/v2/universe/stations/{station_id}/'.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 — This route is cached for up to 3600 seconds
1242 1243 1244 1245 |
# File 'lib/esi_client/api/universe_api.rb', line 1242 def get_universe_structures(opts = {}) data, _status_code, _headers = get_universe_structures_with_http_info(opts) 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. — This route is cached for up to 3600 seconds
1302 1303 1304 1305 |
# File 'lib/esi_client/api/universe_api.rb', line 1302 def get_universe_structures_structure_id(structure_id, opts = {}) data, _status_code, _headers = get_universe_structures_structure_id_with_http_info(structure_id, opts) 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 "Forbidden" for all inputs. — This route is cached for up to 3600 seconds
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 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 |
# File 'lib/esi_client/api/universe_api.rb', line 1316 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 if @api_client.config.client_side_validation && structure_id.nil? fail ArgumentError, "Missing the required parameter 'structure_id' when calling UniverseApi.get_universe_structures_structure_id" end if @api_client.config.client_side_validation && 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 = '/v1/universe/structures/{structure_id}/'.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 — This route is cached for up to 3600 seconds
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 1289 1290 1291 1292 |
# File 'lib/esi_client/api/universe_api.rb', line 1254 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 @api_client.config.client_side_validation && 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 = '/v1/universe/structures/' # 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 — This route is cached for up to 3600 seconds
1367 1368 1369 1370 |
# File 'lib/esi_client/api/universe_api.rb', line 1367 def get_universe_system_jumps(opts = {}) data, _status_code, _headers = get_universe_system_jumps_with_http_info(opts) 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 — This route is cached for up to 3600 seconds
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 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 |
# File 'lib/esi_client/api/universe_api.rb', line 1379 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 @api_client.config.client_side_validation && 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 = '/v1/universe/system_jumps/' # 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 — This route is cached for up to 3600 seconds
1425 1426 1427 1428 |
# File 'lib/esi_client/api/universe_api.rb', line 1425 def get_universe_system_kills(opts = {}) data, _status_code, _headers = get_universe_system_kills_with_http_info(opts) 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 — This route is cached for up to 3600 seconds
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_client/api/universe_api.rb', line 1437 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 @api_client.config.client_side_validation && 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 = '/v2/universe/system_kills/' # 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 — This route expires daily at 11:05
1483 1484 1485 1486 |
# File 'lib/esi_client/api/universe_api.rb', line 1483 def get_universe_systems(opts = {}) data, _status_code, _headers = get_universe_systems_with_http_info(opts) data end |
#get_universe_systems_system_id(system_id, opts = {}) ⇒ GetUniverseSystemsSystemIdOk
Get solar system information Get information on a solar system — This route expires daily at 11:05
1543 1544 1545 1546 |
# File 'lib/esi_client/api/universe_api.rb', line 1543 def get_universe_systems_system_id(system_id, opts = {}) data, _status_code, _headers = get_universe_systems_system_id_with_http_info(system_id, opts) 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 — This route expires daily at 11:05
1557 1558 1559 1560 1561 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 |
# File 'lib/esi_client/api/universe_api.rb', line 1557 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 if @api_client.config.client_side_validation && system_id.nil? fail ArgumentError, "Missing the required parameter 'system_id' when calling UniverseApi.get_universe_systems_system_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v3/universe/systems/{system_id}/'.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 — This route expires daily at 11:05
1495 1496 1497 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 |
# File 'lib/esi_client/api/universe_api.rb', line 1495 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 @api_client.config.client_side_validation && 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 = '/v1/universe/systems/' # 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 — This route expires daily at 11:05
1612 1613 1614 1615 |
# File 'lib/esi_client/api/universe_api.rb', line 1612 def get_universe_types(opts = {}) data, _status_code, _headers = get_universe_types_with_http_info(opts) data end |
#get_universe_types_type_id(type_id, opts = {}) ⇒ GetUniverseTypesTypeIdOk
Get type information Get information on a type — This route expires daily at 11:05
1674 1675 1676 1677 |
# File 'lib/esi_client/api/universe_api.rb', line 1674 def get_universe_types_type_id(type_id, opts = {}) data, _status_code, _headers = get_universe_types_type_id_with_http_info(type_id, opts) 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 — This route expires daily at 11:05
1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 |
# File 'lib/esi_client/api/universe_api.rb', line 1688 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 if @api_client.config.client_side_validation && type_id.nil? fail ArgumentError, "Missing the required parameter 'type_id' when calling UniverseApi.get_universe_types_type_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v3/universe/types/{type_id}/'.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 — This route expires daily at 11:05
1625 1626 1627 1628 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 |
# File 'lib/esi_client/api/universe_api.rb', line 1625 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 @api_client.config.client_side_validation && 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 = '/v1/universe/types/' # 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_ids(names, opts = {}) ⇒ PostUniverseIdsOk
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems. Only exact matches will be returned. All names searched for are cached for 12 hours. —
1744 1745 1746 1747 |
# File 'lib/esi_client/api/universe_api.rb', line 1744 def post_universe_ids(names, opts = {}) data, _status_code, _headers = post_universe_ids_with_http_info(names, opts) data end |
#post_universe_ids_with_http_info(names, opts = {}) ⇒ Array<(PostUniverseIdsOk, Fixnum, Hash)>
Bulk names to IDs Resolve a set of names to IDs in the following categories: agents, alliances, characters, constellations, corporations factions, inventory_types, regions, stations, and systems. Only exact matches will be returned. All names searched for are cached for 12 hours. —
1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 |
# File 'lib/esi_client/api/universe_api.rb', line 1758 def post_universe_ids_with_http_info(names, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UniverseApi.post_universe_ids ...' end # verify the required parameter 'names' is set if @api_client.config.client_side_validation && names.nil? fail ArgumentError, "Missing the required parameter 'names' when calling UniverseApi.post_universe_ids" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end if @api_client.config.client_side_validation && 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 = '/v1/universe/ids/' # 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 = @api_client.object_to_http_body(names) 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 => 'PostUniverseIdsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#post_universe_ids\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. —
1813 1814 1815 1816 |
# File 'lib/esi_client/api/universe_api.rb', line 1813 def post_universe_names(ids, opts = {}) data, _status_code, _headers = post_universe_names_with_http_info(ids, opts) data end |
#post_universe_names_with_http_info(ids, opts = {}) ⇒ Array<(Array<PostUniverseNames200Ok>, Fixnum, Hash)>
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. —
1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 |
# File 'lib/esi_client/api/universe_api.rb', line 1826 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 if @api_client.config.client_side_validation && ids.nil? fail ArgumentError, "Missing the required parameter 'ids' when calling UniverseApi.post_universe_names" end if @api_client.config.client_side_validation && 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 = '/v2/universe/names/' # 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 |