Class: ESI::UniverseApi
- Inherits:
-
Object
- Object
- ESI::UniverseApi
- Defined in:
- lib/ruby-esi/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 — Alternate route: ‘/legacy/universe/ancestries/` Alternate route: `/v1/universe/ancestries/` — This route expires daily at 11:05.
-
#get_universe_ancestries_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseAncestries200Ok>, Integer, Hash)>
Get ancestries Get all character ancestries — Alternate route: `/legacy/universe/ancestries/` Alternate route: `/v1/universe/ancestries/` — This route expires daily at 11:05.
-
#get_universe_asteroid_belts_asteroid_belt_id(asteroid_belt_id, opts = {}) ⇒ GetUniverseAsteroidBeltsAsteroidBeltIdOk
Get asteroid belt information Get information on an asteroid belt — Alternate route: ‘/legacy/universe/asteroid_belts/asteroid_belt_id/` Alternate route: `/v1/universe/asteroid_belts/asteroid_belt_id/` — This route expires daily at 11:05.
-
#get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts = {}) ⇒ Array<(GetUniverseAsteroidBeltsAsteroidBeltIdOk, Integer, Hash)>
Get asteroid belt information Get information on an asteroid belt — Alternate route: `/legacy/universe/asteroid_belts/asteroid_belt_id/` Alternate route: `/v1/universe/asteroid_belts/asteroid_belt_id/` — This route expires daily at 11:05.
-
#get_universe_bloodlines(opts = {}) ⇒ Array<GetUniverseBloodlines200Ok>
Get bloodlines Get a list of bloodlines — Alternate route: ‘/legacy/universe/bloodlines/` Alternate route: `/v1/universe/bloodlines/` — This route expires daily at 11:05.
-
#get_universe_bloodlines_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseBloodlines200Ok>, Integer, Hash)>
Get bloodlines Get a list of bloodlines — Alternate route: `/legacy/universe/bloodlines/` Alternate route: `/v1/universe/bloodlines/` — This route expires daily at 11:05.
-
#get_universe_categories(opts = {}) ⇒ Array<Integer>
Get item categories Get a list of item categories — Alternate route: ‘/legacy/universe/categories/` Alternate route: `/v1/universe/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 — Alternate route: ‘/legacy/universe/categories/category_id/` Alternate route: `/v1/universe/categories/category_id/` — This route expires daily at 11:05.
-
#get_universe_categories_category_id_with_http_info(category_id, opts = {}) ⇒ Array<(GetUniverseCategoriesCategoryIdOk, Integer, Hash)>
Get item category information Get information of an item category — Alternate route: `/legacy/universe/categories/category_id/` Alternate route: `/v1/universe/categories/category_id/` — This route expires daily at 11:05.
-
#get_universe_categories_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Get item categories Get a list of item categories — Alternate route: `/legacy/universe/categories/` Alternate route: `/v1/universe/categories/` — This route expires daily at 11:05.
-
#get_universe_constellations(opts = {}) ⇒ Array<Integer>
Get constellations Get a list of constellations — Alternate route: ‘/legacy/universe/constellations/` Alternate route: `/v1/universe/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 — Alternate route: ‘/legacy/universe/constellations/constellation_id/` Alternate route: `/v1/universe/constellations/constellation_id/` — This route expires daily at 11:05.
-
#get_universe_constellations_constellation_id_with_http_info(constellation_id, opts = {}) ⇒ Array<(GetUniverseConstellationsConstellationIdOk, Integer, Hash)>
Get constellation information Get information on a constellation — Alternate route: `/legacy/universe/constellations/constellation_id/` Alternate route: `/v1/universe/constellations/constellation_id/` — This route expires daily at 11:05.
-
#get_universe_constellations_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Get constellations Get a list of constellations — Alternate route: `/legacy/universe/constellations/` Alternate route: `/v1/universe/constellations/` — This route expires daily at 11:05.
-
#get_universe_factions(opts = {}) ⇒ Array<GetUniverseFactions200Ok>
Get factions Get a list of factions — Alternate route: ‘/dev/universe/factions/` Alternate route: `/v2/universe/factions/` — This route expires daily at 11:05.
-
#get_universe_factions_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseFactions200Ok>, Integer, Hash)>
Get factions Get a list of factions — Alternate route: `/dev/universe/factions/` Alternate route: `/v2/universe/factions/` — This route expires daily at 11:05.
-
#get_universe_graphics(opts = {}) ⇒ Array<Integer>
Get graphics Get a list of graphics — Alternate route: ‘/legacy/universe/graphics/` Alternate route: `/v1/universe/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 — Alternate route: ‘/dev/universe/graphics/graphic_id/` Alternate route: `/legacy/universe/graphics/graphic_id/` Alternate route: `/v1/universe/graphics/graphic_id/` — This route expires daily at 11:05.
-
#get_universe_graphics_graphic_id_with_http_info(graphic_id, opts = {}) ⇒ Array<(GetUniverseGraphicsGraphicIdOk, Integer, Hash)>
Get graphic information Get information on a graphic — Alternate route: `/dev/universe/graphics/graphic_id/` Alternate route: `/legacy/universe/graphics/graphic_id/` Alternate route: `/v1/universe/graphics/graphic_id/` — This route expires daily at 11:05.
-
#get_universe_graphics_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Get graphics Get a list of graphics — Alternate route: `/legacy/universe/graphics/` Alternate route: `/v1/universe/graphics/` — This route expires daily at 11:05.
-
#get_universe_groups(opts = {}) ⇒ Array<Integer>
Get item groups Get a list of item groups — Alternate route: ‘/legacy/universe/groups/` Alternate route: `/v1/universe/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 — Alternate route: ‘/dev/universe/groups/group_id/` Alternate route: `/legacy/universe/groups/group_id/` Alternate route: `/v1/universe/groups/group_id/` — This route expires daily at 11:05.
-
#get_universe_groups_group_id_with_http_info(group_id, opts = {}) ⇒ Array<(GetUniverseGroupsGroupIdOk, Integer, Hash)>
Get item group information Get information on an item group — Alternate route: `/dev/universe/groups/group_id/` Alternate route: `/legacy/universe/groups/group_id/` Alternate route: `/v1/universe/groups/group_id/` — This route expires daily at 11:05.
-
#get_universe_groups_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Get item groups Get a list of item groups — Alternate route: `/legacy/universe/groups/` Alternate route: `/v1/universe/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 — Alternate route: ‘/legacy/universe/moons/moon_id/` Alternate route: `/v1/universe/moons/moon_id/` — This route expires daily at 11:05.
-
#get_universe_moons_moon_id_with_http_info(moon_id, opts = {}) ⇒ Array<(GetUniverseMoonsMoonIdOk, Integer, Hash)>
Get moon information Get information on a moon — Alternate route: `/legacy/universe/moons/moon_id/` Alternate route: `/v1/universe/moons/moon_id/` — This route expires daily at 11:05.
-
#get_universe_planets_planet_id(planet_id, opts = {}) ⇒ GetUniversePlanetsPlanetIdOk
Get planet information Get information on a planet — Alternate route: ‘/legacy/universe/planets/planet_id/` Alternate route: `/v1/universe/planets/planet_id/` — This route expires daily at 11:05.
-
#get_universe_planets_planet_id_with_http_info(planet_id, opts = {}) ⇒ Array<(GetUniversePlanetsPlanetIdOk, Integer, Hash)>
Get planet information Get information on a planet — Alternate route: `/legacy/universe/planets/planet_id/` Alternate route: `/v1/universe/planets/planet_id/` — This route expires daily at 11:05.
-
#get_universe_races(opts = {}) ⇒ Array<GetUniverseRaces200Ok>
Get character races Get a list of character races — Alternate route: ‘/dev/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/v1/universe/races/` — This route expires daily at 11:05.
-
#get_universe_races_with_http_info(opts = {}) ⇒ Array<(Array<GetUniverseRaces200Ok>, Integer, Hash)>
Get character races Get a list of character races — Alternate route: `/dev/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/v1/universe/races/` — This route expires daily at 11:05.
-
#get_universe_regions(opts = {}) ⇒ Array<Integer>
Get regions Get a list of regions — Alternate route: ‘/legacy/universe/regions/` Alternate route: `/v1/universe/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 — Alternate route: ‘/legacy/universe/regions/region_id/` Alternate route: `/v1/universe/regions/region_id/` — This route expires daily at 11:05.
-
#get_universe_regions_region_id_with_http_info(region_id, opts = {}) ⇒ Array<(GetUniverseRegionsRegionIdOk, Integer, Hash)>
Get region information Get information on a region — Alternate route: `/legacy/universe/regions/region_id/` Alternate route: `/v1/universe/regions/region_id/` — This route expires daily at 11:05.
-
#get_universe_regions_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Get regions Get a list of regions — Alternate route: `/legacy/universe/regions/` Alternate route: `/v1/universe/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 — Alternate route: ‘/legacy/universe/stargates/stargate_id/` Alternate route: `/v1/universe/stargates/stargate_id/` — This route expires daily at 11:05.
-
#get_universe_stargates_stargate_id_with_http_info(stargate_id, opts = {}) ⇒ Array<(GetUniverseStargatesStargateIdOk, Integer, Hash)>
Get stargate information Get information on a stargate — Alternate route: `/legacy/universe/stargates/stargate_id/` Alternate route: `/v1/universe/stargates/stargate_id/` — This route expires daily at 11:05.
-
#get_universe_stars_star_id(star_id, opts = {}) ⇒ GetUniverseStarsStarIdOk
Get star information Get information on a star — Alternate route: ‘/legacy/universe/stars/star_id/` Alternate route: `/v1/universe/stars/star_id/` — This route expires daily at 11:05.
-
#get_universe_stars_star_id_with_http_info(star_id, opts = {}) ⇒ Array<(GetUniverseStarsStarIdOk, Integer, Hash)>
Get star information Get information on a star — Alternate route: `/legacy/universe/stars/star_id/` Alternate route: `/v1/universe/stars/star_id/` — This route expires daily at 11:05.
-
#get_universe_stations_station_id(station_id, opts = {}) ⇒ GetUniverseStationsStationIdOk
Get station information Get information on a station — Alternate route: ‘/dev/universe/stations/station_id/` Alternate route: `/v2/universe/stations/station_id/` — This route expires daily at 11:05.
-
#get_universe_stations_station_id_with_http_info(station_id, opts = {}) ⇒ Array<(GetUniverseStationsStationIdOk, Integer, Hash)>
Get station information Get information on a station — Alternate route: `/dev/universe/stations/station_id/` Alternate route: `/v2/universe/stations/station_id/` — This route expires daily at 11:05.
-
#get_universe_structures(opts = {}) ⇒ Array<Integer>
List all public structures List all public structures — Alternate route: ‘/dev/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/v1/universe/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, Integer, 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>, Integer, Hash)>
List all public structures List all public structures — Alternate route: `/dev/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/v1/universe/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>, Integer, 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>, Integer, 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 — Alternate route: ‘/dev/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/v1/universe/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.
-
#get_universe_systems_system_id_with_http_info(system_id, opts = {}) ⇒ Array<(GetUniverseSystemsSystemIdOk, Integer, Hash)>
Get solar system information Get information on a solar system.
-
#get_universe_systems_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Get solar systems Get a list of solar systems — Alternate route: `/dev/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/v1/universe/systems/` — This route expires daily at 11:05.
-
#get_universe_types(opts = {}) ⇒ Array<Integer>
Get types Get a list of type ids — Alternate route: ‘/legacy/universe/types/` Alternate route: `/v1/universe/types/` — This route expires daily at 11:05.
-
#get_universe_types_type_id(type_id, opts = {}) ⇒ GetUniverseTypesTypeIdOk
Get type information Get information on a type — Alternate route: ‘/dev/universe/types/type_id/` Alternate route: `/v3/universe/types/type_id/` — This route expires daily at 11:05.
-
#get_universe_types_type_id_with_http_info(type_id, opts = {}) ⇒ Array<(GetUniverseTypesTypeIdOk, Integer, Hash)>
Get type information Get information on a type — Alternate route: `/dev/universe/types/type_id/` Alternate route: `/v3/universe/types/type_id/` — This route expires daily at 11:05.
-
#get_universe_types_with_http_info(opts = {}) ⇒ Array<(Array<Integer>, Integer, Hash)>
Get types Get a list of type ids — Alternate route: `/legacy/universe/types/` Alternate route: `/v1/universe/types/` — This route expires daily at 11:05.
-
#initialize(api_client = ApiClient.default) ⇒ UniverseApi
constructor
A new instance of UniverseApi.
-
#post_universe_ids(body, 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(body, opts = {}) ⇒ Array<(PostUniverseIdsOk, Integer, 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(body, opts = {}) ⇒ Array<PostUniverseNames200Ok>
Get names and categories for a set of IDs Resolve a set of IDs to names and categories.
-
#post_universe_names_with_http_info(body, opts = {}) ⇒ Array<(Array<PostUniverseNames200Ok>, Integer, Hash)>
Get names and categories for a set of IDs Resolve a set of IDs to names and categories.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ UniverseApi
Returns a new instance of UniverseApi.
16 17 18 |
# File 'lib/ruby-esi/api/universe_api.rb', line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
14 15 16 |
# File 'lib/ruby-esi/api/universe_api.rb', line 14 def api_client @api_client end |
Instance Method Details
#get_universe_ancestries(opts = {}) ⇒ Array<GetUniverseAncestries200Ok>
Get ancestries Get all character ancestries — Alternate route: ‘/legacy/universe/ancestries/` Alternate route: `/v1/universe/ancestries/` — This route expires daily at 11:05
27 28 29 30 |
# File 'lib/ruby-esi/api/universe_api.rb', line 27 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>, Integer, Hash)>
Get ancestries Get all character ancestries — Alternate route: `/legacy/universe/ancestries/` Alternate route: `/v1/universe/ancestries/` — This route expires daily at 11:05
40 41 42 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 86 87 88 89 |
# File 'lib/ruby-esi/api/universe_api.rb', line 40 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/ancestries/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetUniverseAncestries200Ok>' auth_names = opts[: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 => return_type) 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_asteroid_belts_asteroid_belt_id(asteroid_belt_id, opts = {}) ⇒ GetUniverseAsteroidBeltsAsteroidBeltIdOk
Get asteroid belt information Get information on an asteroid belt — Alternate route: ‘/legacy/universe/asteroid_belts/asteroid_belt_id/` Alternate route: `/v1/universe/asteroid_belts/asteroid_belt_id/` — This route expires daily at 11:05
97 98 99 100 |
# File 'lib/ruby-esi/api/universe_api.rb', line 97 def get_universe_asteroid_belts_asteroid_belt_id(asteroid_belt_id, opts = {}) data, _status_code, _headers = get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts) data end |
#get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts = {}) ⇒ Array<(GetUniverseAsteroidBeltsAsteroidBeltIdOk, Integer, Hash)>
Get asteroid belt information Get information on an asteroid belt — Alternate route: `/legacy/universe/asteroid_belts/asteroid_belt_id/` Alternate route: `/v1/universe/asteroid_belts/asteroid_belt_id/` — This route expires daily at 11:05
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 150 151 152 153 154 |
# File 'lib/ruby-esi/api/universe_api.rb', line 109 def get_universe_asteroid_belts_asteroid_belt_id_with_http_info(asteroid_belt_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UniverseApi.get_universe_asteroid_belts_asteroid_belt_id ...' end # verify the required parameter 'asteroid_belt_id' is set if @api_client.config.client_side_validation && asteroid_belt_id.nil? fail ArgumentError, "Missing the required parameter 'asteroid_belt_id' when calling UniverseApi.get_universe_asteroid_belts_asteroid_belt_id" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/asteroid_belts/{asteroid_belt_id}/'.sub('{' + 'asteroid_belt_id' + '}', asteroid_belt_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseAsteroidBeltsAsteroidBeltIdOk' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_asteroid_belts_asteroid_belt_id\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 — Alternate route: ‘/legacy/universe/bloodlines/` Alternate route: `/v1/universe/bloodlines/` — This route expires daily at 11:05
163 164 165 166 |
# File 'lib/ruby-esi/api/universe_api.rb', line 163 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>, Integer, Hash)>
Get bloodlines Get a list of bloodlines — Alternate route: `/legacy/universe/bloodlines/` Alternate route: `/v1/universe/bloodlines/` — This route expires daily at 11:05
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/ruby-esi/api/universe_api.rb', line 176 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/bloodlines/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetUniverseBloodlines200Ok>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_bloodlines\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_categories(opts = {}) ⇒ Array<Integer>
Get item categories Get a list of item categories — Alternate route: ‘/legacy/universe/categories/` Alternate route: `/v1/universe/categories/` — This route expires daily at 11:05
232 233 234 235 |
# File 'lib/ruby-esi/api/universe_api.rb', line 232 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 — Alternate route: ‘/legacy/universe/categories/category_id/` Alternate route: `/v1/universe/categories/category_id/` — This route expires daily at 11:05
294 295 296 297 |
# File 'lib/ruby-esi/api/universe_api.rb', line 294 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, Integer, Hash)>
Get item category information Get information of an item category — Alternate route: `/legacy/universe/categories/category_id/` Alternate route: `/v1/universe/categories/category_id/` — This route expires daily at 11:05
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/ruby-esi/api/universe_api.rb', line 308 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/categories/{category_id}/'.sub('{' + 'category_id' + '}', category_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseCategoriesCategoryIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
Get item categories Get a list of item categories — Alternate route: `/legacy/universe/categories/` Alternate route: `/v1/universe/categories/` — This route expires daily at 11:05
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/ruby-esi/api/universe_api.rb', line 243 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/categories/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_constellations(opts = {}) ⇒ Array<Integer>
Get constellations Get a list of constellations — Alternate route: ‘/legacy/universe/constellations/` Alternate route: `/v1/universe/constellations/` — This route expires daily at 11:05
368 369 370 371 |
# File 'lib/ruby-esi/api/universe_api.rb', line 368 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 — Alternate route: ‘/legacy/universe/constellations/constellation_id/` Alternate route: `/v1/universe/constellations/constellation_id/` — This route expires daily at 11:05
430 431 432 433 |
# File 'lib/ruby-esi/api/universe_api.rb', line 430 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, Integer, Hash)>
Get constellation information Get information on a constellation — Alternate route: `/legacy/universe/constellations/constellation_id/` Alternate route: `/v1/universe/constellations/constellation_id/` — This route expires daily at 11:05
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/ruby-esi/api/universe_api.rb', line 444 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/constellations/{constellation_id}/'.sub('{' + 'constellation_id' + '}', constellation_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseConstellationsConstellationIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
Get constellations Get a list of constellations — Alternate route: `/legacy/universe/constellations/` Alternate route: `/v1/universe/constellations/` — This route expires daily at 11:05
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 |
# File 'lib/ruby-esi/api/universe_api.rb', line 379 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/constellations/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_constellations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_factions(opts = {}) ⇒ Array<GetUniverseFactions200Ok>
Get factions Get a list of factions — Alternate route: ‘/dev/universe/factions/` Alternate route: `/v2/universe/factions/` — This route expires daily at 11:05
506 507 508 509 |
# File 'lib/ruby-esi/api/universe_api.rb', line 506 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>, Integer, Hash)>
Get factions Get a list of factions — Alternate route: `/dev/universe/factions/` Alternate route: `/v2/universe/factions/` — This route expires daily at 11:05
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 |
# File 'lib/ruby-esi/api/universe_api.rb', line 519 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/factions/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetUniverseFactions200Ok>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_factions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_graphics(opts = {}) ⇒ Array<Integer>
Get graphics Get a list of graphics — Alternate route: ‘/legacy/universe/graphics/` Alternate route: `/v1/universe/graphics/` — This route expires daily at 11:05
575 576 577 578 |
# File 'lib/ruby-esi/api/universe_api.rb', line 575 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 — Alternate route: ‘/dev/universe/graphics/graphic_id/` Alternate route: `/legacy/universe/graphics/graphic_id/` Alternate route: `/v1/universe/graphics/graphic_id/` — This route expires daily at 11:05
635 636 637 638 |
# File 'lib/ruby-esi/api/universe_api.rb', line 635 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, Integer, Hash)>
Get graphic information Get information on a graphic — Alternate route: `/dev/universe/graphics/graphic_id/` Alternate route: `/legacy/universe/graphics/graphic_id/` Alternate route: `/v1/universe/graphics/graphic_id/` — This route expires daily at 11:05
647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/ruby-esi/api/universe_api.rb', line 647 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/graphics/{graphic_id}/'.sub('{' + 'graphic_id' + '}', graphic_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseGraphicsGraphicIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
Get graphics Get a list of graphics — Alternate route: `/legacy/universe/graphics/` Alternate route: `/v1/universe/graphics/` — This route expires daily at 11:05
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 |
# File 'lib/ruby-esi/api/universe_api.rb', line 586 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/graphics/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_graphics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_groups(opts = {}) ⇒ Array<Integer>
Get item groups Get a list of item groups — Alternate route: ‘/legacy/universe/groups/` Alternate route: `/v1/universe/groups/` — This route expires daily at 11:05
700 701 702 703 |
# File 'lib/ruby-esi/api/universe_api.rb', line 700 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 — Alternate route: ‘/dev/universe/groups/group_id/` Alternate route: `/legacy/universe/groups/group_id/` Alternate route: `/v1/universe/groups/group_id/` — This route expires daily at 11:05
764 765 766 767 |
# File 'lib/ruby-esi/api/universe_api.rb', line 764 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, Integer, Hash)>
Get item group information Get information on an item group — Alternate route: `/dev/universe/groups/group_id/` Alternate route: `/legacy/universe/groups/group_id/` Alternate route: `/v1/universe/groups/group_id/` — This route expires daily at 11:05
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 |
# File 'lib/ruby-esi/api/universe_api.rb', line 778 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/groups/{group_id}/'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseGroupsGroupIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
Get item groups Get a list of item groups — Alternate route: `/legacy/universe/groups/` Alternate route: `/v1/universe/groups/` — This route expires daily at 11:05
712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/ruby-esi/api/universe_api.rb', line 712 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/groups/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_moons_moon_id(moon_id, opts = {}) ⇒ GetUniverseMoonsMoonIdOk
Get moon information Get information on a moon — Alternate route: ‘/legacy/universe/moons/moon_id/` Alternate route: `/v1/universe/moons/moon_id/` — This route expires daily at 11:05
839 840 841 842 |
# File 'lib/ruby-esi/api/universe_api.rb', line 839 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, Integer, Hash)>
Get moon information Get information on a moon — Alternate route: `/legacy/universe/moons/moon_id/` Alternate route: `/v1/universe/moons/moon_id/` — This route expires daily at 11:05
851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 |
# File 'lib/ruby-esi/api/universe_api.rb', line 851 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/moons/{moon_id}/'.sub('{' + 'moon_id' + '}', moon_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseMoonsMoonIdOk' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_moons_moon_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_planets_planet_id(planet_id, opts = {}) ⇒ GetUniversePlanetsPlanetIdOk
Get planet information Get information on a planet — Alternate route: ‘/legacy/universe/planets/planet_id/` Alternate route: `/v1/universe/planets/planet_id/` — This route expires daily at 11:05
904 905 906 907 |
# File 'lib/ruby-esi/api/universe_api.rb', line 904 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, Integer, Hash)>
Get planet information Get information on a planet — Alternate route: `/legacy/universe/planets/planet_id/` Alternate route: `/v1/universe/planets/planet_id/` — This route expires daily at 11:05
916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 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 |
# File 'lib/ruby-esi/api/universe_api.rb', line 916 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/planets/{planet_id}/'.sub('{' + 'planet_id' + '}', planet_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniversePlanetsPlanetIdOk' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_planets_planet_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_races(opts = {}) ⇒ Array<GetUniverseRaces200Ok>
Get character races Get a list of character races — Alternate route: ‘/dev/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/v1/universe/races/` — This route expires daily at 11:05
970 971 972 973 |
# File 'lib/ruby-esi/api/universe_api.rb', line 970 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>, Integer, Hash)>
Get character races Get a list of character races — Alternate route: `/dev/universe/races/` Alternate route: `/legacy/universe/races/` Alternate route: `/v1/universe/races/` — This route expires daily at 11:05
983 984 985 986 987 988 989 990 991 992 993 994 995 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 |
# File 'lib/ruby-esi/api/universe_api.rb', line 983 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/races/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetUniverseRaces200Ok>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_races\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_regions(opts = {}) ⇒ Array<Integer>
Get regions Get a list of regions — Alternate route: ‘/legacy/universe/regions/` Alternate route: `/v1/universe/regions/` — This route expires daily at 11:05
1039 1040 1041 1042 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1039 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 — Alternate route: ‘/legacy/universe/regions/region_id/` Alternate route: `/v1/universe/regions/region_id/` — This route expires daily at 11:05
1101 1102 1103 1104 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1101 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, Integer, Hash)>
Get region information Get information on a region — Alternate route: `/legacy/universe/regions/region_id/` Alternate route: `/v1/universe/regions/region_id/` — This route expires daily at 11:05
1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1115 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/regions/{region_id}/'.sub('{' + 'region_id' + '}', region_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseRegionsRegionIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
Get regions Get a list of regions — Alternate route: `/legacy/universe/regions/` Alternate route: `/v1/universe/regions/` — This route expires daily at 11:05
1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 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 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1050 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/regions/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_stargates_stargate_id(stargate_id, opts = {}) ⇒ GetUniverseStargatesStargateIdOk
Get stargate information Get information on a stargate — Alternate route: ‘/legacy/universe/stargates/stargate_id/` Alternate route: `/v1/universe/stargates/stargate_id/` — This route expires daily at 11:05
1176 1177 1178 1179 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1176 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, Integer, Hash)>
Get stargate information Get information on a stargate — Alternate route: `/legacy/universe/stargates/stargate_id/` Alternate route: `/v1/universe/stargates/stargate_id/` — This route expires daily at 11:05
1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1188 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/stargates/{stargate_id}/'.sub('{' + 'stargate_id' + '}', stargate_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseStargatesStargateIdOk' auth_names = opts[: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 => return_type) 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 — Alternate route: ‘/legacy/universe/stars/star_id/` Alternate route: `/v1/universe/stars/star_id/` — This route expires daily at 11:05
1241 1242 1243 1244 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1241 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, Integer, Hash)>
Get star information Get information on a star — Alternate route: `/legacy/universe/stars/star_id/` Alternate route: `/v1/universe/stars/star_id/` — This route expires daily at 11:05
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1253 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/stars/{star_id}/'.sub('{' + 'star_id' + '}', star_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseStarsStarIdOk' auth_names = opts[: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 => return_type) 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 — Alternate route: ‘/dev/universe/stations/station_id/` Alternate route: `/v2/universe/stations/station_id/` — This route expires daily at 11:05
1306 1307 1308 1309 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1306 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, Integer, Hash)>
Get station information Get information on a station — Alternate route: `/dev/universe/stations/station_id/` Alternate route: `/v2/universe/stations/station_id/` — This route expires daily at 11:05
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 1360 1361 1362 1363 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1318 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/stations/{station_id}/'.sub('{' + 'station_id' + '}', station_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseStationsStationIdOk' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_stations_station_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_structures(opts = {}) ⇒ Array<Integer>
List all public structures List all public structures — Alternate route: ‘/dev/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/v1/universe/structures/` — This route is cached for up to 3600 seconds
1371 1372 1373 1374 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1371 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. — Alternate route: ‘/v2/universe/structures/structure_id/` — This route is cached for up to 3600 seconds
1437 1438 1439 1440 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1437 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, Integer, Hash)>
Get structure information Returns information on requested structure if you are on the ACL. Otherwise, returns "Forbidden" for all inputs. — Alternate route: `/v2/universe/structures/structure_id/` — This route is cached for up to 3600 seconds
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 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1450 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/structures/{structure_id}/'.sub('{' + 'structure_id' + '}', structure_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseStructuresStructureIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
List all public structures List all public structures — Alternate route: `/dev/universe/structures/` Alternate route: `/legacy/universe/structures/` Alternate route: `/v1/universe/structures/` — This route is cached for up to 3600 seconds
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 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1383 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'filter'] && !['market', 'manufacturing_basic'].include?(opts[:'filter']) fail ArgumentError, 'invalid value for "filter", must be one of market, manufacturing_basic' end # resource path local_var_path = '/universe/structures/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_structures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_system_jumps(opts = {}) ⇒ Array<GetUniverseSystemJumps200Ok>
Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed — Alternate route: ‘/legacy/universe/system_jumps/` Alternate route: `/v1/universe/system_jumps/` — This route is cached for up to 3600 seconds
1503 1504 1505 1506 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1503 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>, Integer, Hash)>
Get system jumps Get the number of jumps in solar systems within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with jumps will be listed — Alternate route: `/legacy/universe/system_jumps/` Alternate route: `/v1/universe/system_jumps/` — This route is cached for up to 3600 seconds
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1514 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/system_jumps/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetUniverseSystemJumps200Ok>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_system_jumps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_system_kills(opts = {}) ⇒ Array<GetUniverseSystemKills200Ok>
Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed — Alternate route: ‘/v2/universe/system_kills/` — This route is cached for up to 3600 seconds
1562 1563 1564 1565 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1562 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>, Integer, Hash)>
Get system kills Get the number of ship, pod and NPC kills per solar system within the last hour ending at the timestamp of the Last-Modified header, excluding wormhole space. Only systems with kills will be listed — Alternate route: `/v2/universe/system_kills/` — This route is cached for up to 3600 seconds
1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1573 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/system_kills/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<GetUniverseSystemKills200Ok>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_system_kills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_systems(opts = {}) ⇒ Array<Integer>
Get solar systems Get a list of solar systems — Alternate route: ‘/dev/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/v1/universe/systems/` — This route expires daily at 11:05
1621 1622 1623 1624 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1621 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. — Alternate route: ‘/dev/universe/systems/system_id/` Alternate route: `/v4/universe/systems/system_id/` — This route expires daily at 11:05
1683 1684 1685 1686 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1683 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, Integer, Hash)>
Get solar system information Get information on a solar system. — Alternate route: `/dev/universe/systems/system_id/` Alternate route: `/v4/universe/systems/system_id/` — This route expires daily at 11:05
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 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1697 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/systems/{system_id}/'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseSystemsSystemIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
Get solar systems Get a list of solar systems — Alternate route: `/dev/universe/systems/` Alternate route: `/legacy/universe/systems/` Alternate route: `/v1/universe/systems/` — This route expires daily at 11:05
1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1632 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/systems/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: UniverseApi#get_universe_systems\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_universe_types(opts = {}) ⇒ Array<Integer>
Get types Get a list of type ids — Alternate route: ‘/legacy/universe/types/` Alternate route: `/v1/universe/types/` — This route expires daily at 11:05
1758 1759 1760 1761 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1758 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 — Alternate route: ‘/dev/universe/types/type_id/` Alternate route: `/v3/universe/types/type_id/` — This route expires daily at 11:05
1822 1823 1824 1825 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1822 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, Integer, Hash)>
Get type information Get information on a type — Alternate route: `/dev/universe/types/type_id/` Alternate route: `/v3/universe/types/type_id/` — This route expires daily at 11:05
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 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1836 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[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/types/{type_id}/'.sub('{' + 'type_id' + '}', type_id.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'GetUniverseTypesTypeIdOk' auth_names = opts[: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 => return_type) 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>, Integer, Hash)>
Get types Get a list of type ids — Alternate route: `/legacy/universe/types/` Alternate route: `/v1/universe/types/` — This route expires daily at 11:05
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 1805 1806 1807 1808 1809 1810 1811 1812 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1770 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'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/types/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'Array<Integer>' auth_names = opts[: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 => return_type) 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(body, 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 — Alternate route: ‘/dev/universe/ids/` Alternate route: `/legacy/universe/ids/` Alternate route: `/v1/universe/ids/`
1898 1899 1900 1901 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1898 def post_universe_ids(body, opts = {}) data, _status_code, _headers = post_universe_ids_with_http_info(body, opts) data end |
#post_universe_ids_with_http_info(body, opts = {}) ⇒ Array<(PostUniverseIdsOk, Integer, 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 — Alternate route: `/dev/universe/ids/` Alternate route: `/legacy/universe/ids/` Alternate route: `/v1/universe/ids/`
1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1911 def post_universe_ids_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UniverseApi.post_universe_ids ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UniverseApi.post_universe_ids" end if @api_client.config.client_side_validation && opts[:'accept_language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'accept_language']) fail ArgumentError, 'invalid value for "accept_language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end if @api_client.config.client_side_validation && opts[:'language'] && !['en', 'en-us', 'de', 'fr', 'ja', 'ru', 'zh', 'ko', 'es'].include?(opts[:'language']) fail ArgumentError, 'invalid value for "language", must be one of en, en-us, de, fr, ja, ru, zh, ko, es' end # resource path local_var_path = '/universe/ids/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'PostUniverseIdsOk' auth_names = opts[: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 => return_type) 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(body, opts = {}) ⇒ Array<PostUniverseNames200Ok>
Get names and categories for a set of IDs Resolve a set of IDs to names and categories. Supported ID’s for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types, Factions — Alternate route: ‘/dev/universe/names/` Alternate route: `/v3/universe/names/`
1972 1973 1974 1975 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1972 def post_universe_names(body, opts = {}) data, _status_code, _headers = post_universe_names_with_http_info(body, opts) data end |
#post_universe_names_with_http_info(body, opts = {}) ⇒ Array<(Array<PostUniverseNames200Ok>, Integer, Hash)>
Get names and categories for a set of IDs Resolve a set of IDs to names and categories. Supported ID's for resolving are: Characters, Corporations, Alliances, Stations, Solar Systems, Constellations, Regions, Types, Factions — Alternate route: `/dev/universe/names/` Alternate route: `/v3/universe/names/`
1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 |
# File 'lib/ruby-esi/api/universe_api.rb', line 1983 def post_universe_names_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: UniverseApi.post_universe_names ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling UniverseApi.post_universe_names" end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility' end # resource path local_var_path = '/universe/names/' # query parameters query_params = opts[:query_params] || {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'Array<PostUniverseNames200Ok>' auth_names = opts[: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 => return_type) 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 |