esi-sdk 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +21 -3
- data/lib/esi/client/alliance.rb +97 -4
- data/lib/esi/client/assets.rb +175 -6
- data/lib/esi/client/bookmarks.rb +118 -4
- data/lib/esi/client/calendar.rb +132 -5
- data/lib/esi/client/character.rb +383 -14
- data/lib/esi/client/clones.rb +61 -2
- data/lib/esi/client/contacts.rb +271 -12
- data/lib/esi/client/contracts.rb +266 -9
- data/lib/esi/client/corporation.rb +730 -136
- data/lib/esi/client/dogma.rb +111 -5
- data/lib/esi/client/faction_warfare.rb +192 -8
- data/lib/esi/client/fittings.rb +86 -3
- data/lib/esi/client/fleets.rb +427 -14
- data/lib/esi/client/incursions.rb +23 -1
- data/lib/esi/client/industry.rb +231 -9
- data/lib/esi/client/insurance.rb +23 -1
- data/lib/esi/client/killmails.rb +86 -3
- data/lib/esi/client/location.rb +92 -3
- data/lib/esi/client/loyalty.rb +53 -2
- data/lib/esi/client/mail.rb +239 -8
- data/lib/esi/client/market.rb +294 -12
- data/lib/esi/client/opportunities.rb +116 -5
- data/lib/esi/client/planetary_interaction.rb +114 -4
- data/lib/esi/client/routes.rb +29 -1
- data/lib/esi/client/search.rb +60 -3
- data/lib/esi/client/skills.rb +89 -3
- data/lib/esi/client/sovereignty.rb +69 -3
- data/lib/esi/client/status.rb +24 -1
- data/lib/esi/client/universe.rb +795 -176
- data/lib/esi/client/user_interface.rb +143 -5
- data/lib/esi/client/wallet.rb +183 -8
- data/lib/esi/client/wars.rb +74 -3
- data/lib/esi/version.rb +1 -1
- metadata +2 -2
@@ -29,10 +29,38 @@ module ESI
|
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_characters_character_id_planets_planet_id
|
31
31
|
def get_character_planet(character_id:, planet_id:, headers: {}, params: {})
|
32
|
-
|
32
|
+
get_character_planet_raw(character_id: character_id, planet_id: planet_id, headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias get_characters_character_id_planets_planet_id get_character_planet
|
35
35
|
|
36
|
+
# Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information will not update until this criteria is met.
|
37
|
+
#
|
38
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
39
|
+
#
|
40
|
+
# @esi_scope esi-planets.manage_planets.v1
|
41
|
+
#
|
42
|
+
# @esi_version dev
|
43
|
+
# @esi_version v3
|
44
|
+
#
|
45
|
+
# @param character_id [Integer] An EVE character ID
|
46
|
+
# @param planet_id [Integer] Planet id of the target planet
|
47
|
+
# @param params [Hash] Additional query string parameters
|
48
|
+
# @param headers [Hash] Additional headers
|
49
|
+
#
|
50
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
51
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
52
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
53
|
+
# @raise [ESI::Errors::NotFoundError] Colony not found
|
54
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
55
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
56
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
57
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
58
|
+
#
|
59
|
+
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_characters_character_id_planets_planet_id
|
60
|
+
def get_character_planet_raw(character_id:, planet_id:, headers: {}, params: {})
|
61
|
+
get("/characters/#{character_id}/planets/#{planet_id}/", headers: headers, params: params)
|
62
|
+
end
|
63
|
+
|
36
64
|
# Returns a list of all planetary colonies owned by a character.
|
37
65
|
#
|
38
66
|
# This endpoint is cached for up to 600 seconds.
|
@@ -59,10 +87,39 @@ module ESI
|
|
59
87
|
#
|
60
88
|
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_characters_character_id_planets
|
61
89
|
def get_character_planets(character_id:, headers: {}, params: {})
|
62
|
-
|
90
|
+
get_character_planets_raw(character_id: character_id, headers: headers, params: params).json
|
63
91
|
end
|
64
92
|
alias get_characters_character_id_planets get_character_planets
|
65
93
|
|
94
|
+
# Returns a list of all planetary colonies owned by a character.
|
95
|
+
#
|
96
|
+
# This endpoint is cached for up to 600 seconds.
|
97
|
+
#
|
98
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
99
|
+
#
|
100
|
+
# @esi_scope esi-planets.manage_planets.v1
|
101
|
+
#
|
102
|
+
# @esi_version dev
|
103
|
+
# @esi_version legacy
|
104
|
+
# @esi_version v1
|
105
|
+
#
|
106
|
+
# @param character_id [Integer] An EVE character ID
|
107
|
+
# @param params [Hash] Additional query string parameters
|
108
|
+
# @param headers [Hash] Additional headers
|
109
|
+
#
|
110
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
111
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
112
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
113
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
114
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
115
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
116
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
117
|
+
#
|
118
|
+
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_characters_character_id_planets
|
119
|
+
def get_character_planets_raw(character_id:, headers: {}, params: {})
|
120
|
+
get("/characters/#{character_id}/planets/", headers: headers, params: params)
|
121
|
+
end
|
122
|
+
|
66
123
|
# List customs offices owned by a corporation.
|
67
124
|
#
|
68
125
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -89,11 +146,40 @@ module ESI
|
|
89
146
|
#
|
90
147
|
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_corporations_corporation_id_customs_offices
|
91
148
|
def get_corporation_customs_offices(corporation_id:, headers: {}, params: {})
|
92
|
-
responses =
|
149
|
+
responses = get_corporation_customs_offices_raw(corporation_id: corporation_id, headers: headers, params: params)
|
93
150
|
responses.map(&:json).reduce([], :concat)
|
94
151
|
end
|
95
152
|
alias get_corporations_corporation_id_customs_offices get_corporation_customs_offices
|
96
153
|
|
154
|
+
# List customs offices owned by a corporation.
|
155
|
+
#
|
156
|
+
# This endpoint is cached for up to 3600 seconds.
|
157
|
+
#
|
158
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
159
|
+
#
|
160
|
+
# @esi_scope esi-planets.read_customs_offices.v1
|
161
|
+
#
|
162
|
+
# @esi_version dev
|
163
|
+
# @esi_version legacy
|
164
|
+
# @esi_version v1
|
165
|
+
#
|
166
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
167
|
+
# @param params [Hash] Additional query string parameters
|
168
|
+
# @param headers [Hash] Additional headers
|
169
|
+
#
|
170
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
171
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
172
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
173
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
174
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
175
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
176
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
177
|
+
#
|
178
|
+
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_corporations_corporation_id_customs_offices
|
179
|
+
def get_corporation_customs_offices_raw(corporation_id:, headers: {}, params: {})
|
180
|
+
get("/corporations/#{corporation_id}/customs_offices/", headers: headers, params: params)
|
181
|
+
end
|
182
|
+
|
97
183
|
# Get information on a planetary factory schematic.
|
98
184
|
#
|
99
185
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -115,9 +201,33 @@ module ESI
|
|
115
201
|
#
|
116
202
|
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_universe_schematics_schematic_id
|
117
203
|
def get_universe_schematic(schematic_id:, headers: {}, params: {})
|
118
|
-
|
204
|
+
get_universe_schematic_raw(schematic_id: schematic_id, headers: headers, params: params).json
|
119
205
|
end
|
120
206
|
alias get_universe_schematics_schematic_id get_universe_schematic
|
207
|
+
|
208
|
+
# Get information on a planetary factory schematic.
|
209
|
+
#
|
210
|
+
# This endpoint is cached for up to 3600 seconds.
|
211
|
+
#
|
212
|
+
# @esi_version dev
|
213
|
+
# @esi_version legacy
|
214
|
+
# @esi_version v1
|
215
|
+
#
|
216
|
+
# @param schematic_id [Integer] A PI schematic ID
|
217
|
+
# @param params [Hash] Additional query string parameters
|
218
|
+
# @param headers [Hash] Additional headers
|
219
|
+
#
|
220
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
221
|
+
# @raise [ESI::Errors::NotFoundError] Schematic not found
|
222
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
223
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
224
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
225
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
226
|
+
#
|
227
|
+
# @see https://esi.evetech.net/ui/#/Planetary Interaction/get_universe_schematics_schematic_id
|
228
|
+
def get_universe_schematic_raw(schematic_id:, headers: {}, params: {})
|
229
|
+
get("/universe/schematics/#{schematic_id}/", headers: headers, params: params)
|
230
|
+
end
|
121
231
|
end
|
122
232
|
end
|
123
233
|
end
|
data/lib/esi/client/routes.rb
CHANGED
@@ -29,8 +29,36 @@ module ESI
|
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Routes/get_route_origin_destination
|
31
31
|
def get_route_origin_destination(destination:, origin:, avoid: nil, connections: nil, flag: "shortest", headers: {}, params: {})
|
32
|
+
get_route_origin_destination_raw(destination: destination, origin: origin, avoid: avoid, connections: connections, flag: flag, headers: headers, params: params).json
|
33
|
+
end
|
34
|
+
|
35
|
+
# Get the systems between origin and destination.
|
36
|
+
#
|
37
|
+
# This endpoint is cached for up to 86400 seconds.
|
38
|
+
#
|
39
|
+
# @esi_version dev
|
40
|
+
# @esi_version legacy
|
41
|
+
# @esi_version v1
|
42
|
+
#
|
43
|
+
# @param destination [Integer] destination solar system ID
|
44
|
+
# @param origin [Integer] origin solar system ID
|
45
|
+
# @param avoid [Array] avoid solar system ID(s)
|
46
|
+
# @param connections [Array] connected solar system pairs
|
47
|
+
# @param flag [String] route security preference. Must be one of: `shortest`, `secure`, `insecure`
|
48
|
+
# @param params [Hash] Additional query string parameters
|
49
|
+
# @param headers [Hash] Additional headers
|
50
|
+
#
|
51
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
52
|
+
# @raise [ESI::Errors::NotFoundError] No route found
|
53
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
54
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
55
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
56
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
57
|
+
#
|
58
|
+
# @see https://esi.evetech.net/ui/#/Routes/get_route_origin_destination
|
59
|
+
def get_route_origin_destination_raw(destination:, origin:, avoid: nil, connections: nil, flag: "shortest", headers: {}, params: {})
|
32
60
|
params.merge!("avoid" => avoid, "connections" => connections, "flag" => flag)
|
33
|
-
get("/route/#{origin}/#{destination}/", headers: headers, params: params)
|
61
|
+
get("/route/#{origin}/#{destination}/", headers: headers, params: params)
|
34
62
|
end
|
35
63
|
end
|
36
64
|
end
|
data/lib/esi/client/search.rb
CHANGED
@@ -33,11 +33,43 @@ module ESI
|
|
33
33
|
#
|
34
34
|
# @see https://esi.evetech.net/ui/#/Search/get_characters_character_id_search
|
35
35
|
def get_character_search(character_id:, categories:, search:, strict: nil, headers: {}, params: {})
|
36
|
-
|
37
|
-
get("/characters/#{character_id}/search/", headers: headers, params: params).json
|
36
|
+
get_character_search_raw(character_id: character_id, categories: categories, search: search, strict: strict, headers: headers, params: params).json
|
38
37
|
end
|
39
38
|
alias get_characters_character_id_search get_character_search
|
40
39
|
|
40
|
+
# Search for entities that match a given sub-string.
|
41
|
+
#
|
42
|
+
# This endpoint is cached for up to 3600 seconds.
|
43
|
+
#
|
44
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
45
|
+
#
|
46
|
+
# @esi_scope esi-search.search_structures.v1
|
47
|
+
#
|
48
|
+
# @esi_version dev
|
49
|
+
# @esi_version legacy
|
50
|
+
# @esi_version v3
|
51
|
+
#
|
52
|
+
# @param character_id [Integer] An EVE character ID
|
53
|
+
# @param categories [Array] Type of entities to search for
|
54
|
+
# @param search [String] The string to search on
|
55
|
+
# @param strict [Boolean] Whether the search should be a strict match
|
56
|
+
# @param params [Hash] Additional query string parameters
|
57
|
+
# @param headers [Hash] Additional headers
|
58
|
+
#
|
59
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
60
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
61
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
62
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
63
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
64
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
65
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
66
|
+
#
|
67
|
+
# @see https://esi.evetech.net/ui/#/Search/get_characters_character_id_search
|
68
|
+
def get_character_search_raw(character_id:, categories:, search:, strict: nil, headers: {}, params: {})
|
69
|
+
params.merge!("categories" => categories, "search" => search, "strict" => strict)
|
70
|
+
get("/characters/#{character_id}/search/", headers: headers, params: params)
|
71
|
+
end
|
72
|
+
|
41
73
|
# Search for entities that match a given sub-string.
|
42
74
|
#
|
43
75
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -60,8 +92,33 @@ module ESI
|
|
60
92
|
#
|
61
93
|
# @see https://esi.evetech.net/ui/#/Search/get_search
|
62
94
|
def get_search(categories:, search:, strict: nil, headers: {}, params: {})
|
95
|
+
get_search_raw(categories: categories, search: search, strict: strict, headers: headers, params: params).json
|
96
|
+
end
|
97
|
+
|
98
|
+
# Search for entities that match a given sub-string.
|
99
|
+
#
|
100
|
+
# This endpoint is cached for up to 3600 seconds.
|
101
|
+
#
|
102
|
+
# @esi_version dev
|
103
|
+
# @esi_version legacy
|
104
|
+
# @esi_version v2
|
105
|
+
#
|
106
|
+
# @param categories [Array] Type of entities to search for
|
107
|
+
# @param search [String] The string to search on
|
108
|
+
# @param strict [Boolean] Whether the search should be a strict match
|
109
|
+
# @param params [Hash] Additional query string parameters
|
110
|
+
# @param headers [Hash] Additional headers
|
111
|
+
#
|
112
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
113
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
114
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
115
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
116
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
117
|
+
#
|
118
|
+
# @see https://esi.evetech.net/ui/#/Search/get_search
|
119
|
+
def get_search_raw(categories:, search:, strict: nil, headers: {}, params: {})
|
63
120
|
params.merge!("categories" => categories, "search" => search, "strict" => strict)
|
64
|
-
get("/search/", headers: headers, params: params)
|
121
|
+
get("/search/", headers: headers, params: params)
|
65
122
|
end
|
66
123
|
end
|
67
124
|
end
|
data/lib/esi/client/skills.rb
CHANGED
@@ -30,10 +30,39 @@ module ESI
|
|
30
30
|
#
|
31
31
|
# @see https://esi.evetech.net/ui/#/Skills/get_characters_character_id_attributes
|
32
32
|
def get_character_attributes(character_id:, headers: {}, params: {})
|
33
|
-
|
33
|
+
get_character_attributes_raw(character_id: character_id, headers: headers, params: params).json
|
34
34
|
end
|
35
35
|
alias get_characters_character_id_attributes get_character_attributes
|
36
36
|
|
37
|
+
# Return attributes of a character.
|
38
|
+
#
|
39
|
+
# This endpoint is cached for up to 120 seconds.
|
40
|
+
#
|
41
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
42
|
+
#
|
43
|
+
# @esi_scope esi-skills.read_skills.v1
|
44
|
+
#
|
45
|
+
# @esi_version dev
|
46
|
+
# @esi_version legacy
|
47
|
+
# @esi_version v1
|
48
|
+
#
|
49
|
+
# @param character_id [Integer] An EVE character ID
|
50
|
+
# @param params [Hash] Additional query string parameters
|
51
|
+
# @param headers [Hash] Additional headers
|
52
|
+
#
|
53
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
54
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
55
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
56
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
57
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
58
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
59
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
60
|
+
#
|
61
|
+
# @see https://esi.evetech.net/ui/#/Skills/get_characters_character_id_attributes
|
62
|
+
def get_character_attributes_raw(character_id:, headers: {}, params: {})
|
63
|
+
get("/characters/#{character_id}/attributes/", headers: headers, params: params)
|
64
|
+
end
|
65
|
+
|
37
66
|
# List the configured skill queue for the given character.
|
38
67
|
#
|
39
68
|
# This endpoint is cached for up to 120 seconds.
|
@@ -60,10 +89,39 @@ module ESI
|
|
60
89
|
#
|
61
90
|
# @see https://esi.evetech.net/ui/#/Skills/get_characters_character_id_skillqueue
|
62
91
|
def get_character_skillqueue(character_id:, headers: {}, params: {})
|
63
|
-
|
92
|
+
get_character_skillqueue_raw(character_id: character_id, headers: headers, params: params).json
|
64
93
|
end
|
65
94
|
alias get_characters_character_id_skillqueue get_character_skillqueue
|
66
95
|
|
96
|
+
# List the configured skill queue for the given character.
|
97
|
+
#
|
98
|
+
# This endpoint is cached for up to 120 seconds.
|
99
|
+
#
|
100
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
101
|
+
#
|
102
|
+
# @esi_scope esi-skills.read_skillqueue.v1
|
103
|
+
#
|
104
|
+
# @esi_version dev
|
105
|
+
# @esi_version legacy
|
106
|
+
# @esi_version v2
|
107
|
+
#
|
108
|
+
# @param character_id [Integer] An EVE character ID
|
109
|
+
# @param params [Hash] Additional query string parameters
|
110
|
+
# @param headers [Hash] Additional headers
|
111
|
+
#
|
112
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
113
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
114
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
115
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
116
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
117
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
118
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
119
|
+
#
|
120
|
+
# @see https://esi.evetech.net/ui/#/Skills/get_characters_character_id_skillqueue
|
121
|
+
def get_character_skillqueue_raw(character_id:, headers: {}, params: {})
|
122
|
+
get("/characters/#{character_id}/skillqueue/", headers: headers, params: params)
|
123
|
+
end
|
124
|
+
|
67
125
|
# List all trained skills for the given character.
|
68
126
|
#
|
69
127
|
# This endpoint is cached for up to 120 seconds.
|
@@ -89,9 +147,37 @@ module ESI
|
|
89
147
|
#
|
90
148
|
# @see https://esi.evetech.net/ui/#/Skills/get_characters_character_id_skills
|
91
149
|
def get_character_skills(character_id:, headers: {}, params: {})
|
92
|
-
|
150
|
+
get_character_skills_raw(character_id: character_id, headers: headers, params: params).json
|
93
151
|
end
|
94
152
|
alias get_characters_character_id_skills get_character_skills
|
153
|
+
|
154
|
+
# List all trained skills for the given character.
|
155
|
+
#
|
156
|
+
# This endpoint is cached for up to 120 seconds.
|
157
|
+
#
|
158
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
159
|
+
#
|
160
|
+
# @esi_scope esi-skills.read_skills.v1
|
161
|
+
#
|
162
|
+
# @esi_version dev
|
163
|
+
# @esi_version v4
|
164
|
+
#
|
165
|
+
# @param character_id [Integer] An EVE character ID
|
166
|
+
# @param params [Hash] Additional query string parameters
|
167
|
+
# @param headers [Hash] Additional headers
|
168
|
+
#
|
169
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
170
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
171
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
172
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
173
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
174
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
175
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
176
|
+
#
|
177
|
+
# @see https://esi.evetech.net/ui/#/Skills/get_characters_character_id_skills
|
178
|
+
def get_character_skills_raw(character_id:, headers: {}, params: {})
|
179
|
+
get("/characters/#{character_id}/skills/", headers: headers, params: params)
|
180
|
+
end
|
95
181
|
end
|
96
182
|
end
|
97
183
|
end
|
@@ -23,7 +23,29 @@ module ESI
|
|
23
23
|
#
|
24
24
|
# @see https://esi.evetech.net/ui/#/Sovereignty/get_sovereignty_campaigns
|
25
25
|
def get_sovereignty_campaigns(headers: {}, params: {})
|
26
|
-
|
26
|
+
get_sovereignty_campaigns_raw(headers: headers, params: params).json
|
27
|
+
end
|
28
|
+
|
29
|
+
# Shows sovereignty data for campaigns.
|
30
|
+
#
|
31
|
+
# This endpoint is cached for up to 5 seconds.
|
32
|
+
#
|
33
|
+
# @esi_version dev
|
34
|
+
# @esi_version legacy
|
35
|
+
# @esi_version v1
|
36
|
+
#
|
37
|
+
# @param params [Hash] Additional query string parameters
|
38
|
+
# @param headers [Hash] Additional headers
|
39
|
+
#
|
40
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
41
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
42
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
43
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
44
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
45
|
+
#
|
46
|
+
# @see https://esi.evetech.net/ui/#/Sovereignty/get_sovereignty_campaigns
|
47
|
+
def get_sovereignty_campaigns_raw(headers: {}, params: {})
|
48
|
+
get("/sovereignty/campaigns/", headers: headers, params: params)
|
27
49
|
end
|
28
50
|
|
29
51
|
# Shows sovereignty information for solar systems.
|
@@ -45,7 +67,29 @@ module ESI
|
|
45
67
|
#
|
46
68
|
# @see https://esi.evetech.net/ui/#/Sovereignty/get_sovereignty_map
|
47
69
|
def get_sovereignty_map(headers: {}, params: {})
|
48
|
-
|
70
|
+
get_sovereignty_map_raw(headers: headers, params: params).json
|
71
|
+
end
|
72
|
+
|
73
|
+
# Shows sovereignty information for solar systems.
|
74
|
+
#
|
75
|
+
# This endpoint is cached for up to 3600 seconds.
|
76
|
+
#
|
77
|
+
# @esi_version dev
|
78
|
+
# @esi_version legacy
|
79
|
+
# @esi_version v1
|
80
|
+
#
|
81
|
+
# @param params [Hash] Additional query string parameters
|
82
|
+
# @param headers [Hash] Additional headers
|
83
|
+
#
|
84
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
85
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
86
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
87
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
88
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
89
|
+
#
|
90
|
+
# @see https://esi.evetech.net/ui/#/Sovereignty/get_sovereignty_map
|
91
|
+
def get_sovereignty_map_raw(headers: {}, params: {})
|
92
|
+
get("/sovereignty/map/", headers: headers, params: params)
|
49
93
|
end
|
50
94
|
|
51
95
|
# Shows sovereignty data for structures.
|
@@ -67,7 +111,29 @@ module ESI
|
|
67
111
|
#
|
68
112
|
# @see https://esi.evetech.net/ui/#/Sovereignty/get_sovereignty_structures
|
69
113
|
def get_sovereignty_structures(headers: {}, params: {})
|
70
|
-
|
114
|
+
get_sovereignty_structures_raw(headers: headers, params: params).json
|
115
|
+
end
|
116
|
+
|
117
|
+
# Shows sovereignty data for structures.
|
118
|
+
#
|
119
|
+
# This endpoint is cached for up to 120 seconds.
|
120
|
+
#
|
121
|
+
# @esi_version dev
|
122
|
+
# @esi_version legacy
|
123
|
+
# @esi_version v1
|
124
|
+
#
|
125
|
+
# @param params [Hash] Additional query string parameters
|
126
|
+
# @param headers [Hash] Additional headers
|
127
|
+
#
|
128
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
129
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
130
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
131
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
132
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
133
|
+
#
|
134
|
+
# @see https://esi.evetech.net/ui/#/Sovereignty/get_sovereignty_structures
|
135
|
+
def get_sovereignty_structures_raw(headers: {}, params: {})
|
136
|
+
get("/sovereignty/structures/", headers: headers, params: params)
|
71
137
|
end
|
72
138
|
end
|
73
139
|
end
|
data/lib/esi/client/status.rb
CHANGED
@@ -24,7 +24,30 @@ module ESI
|
|
24
24
|
#
|
25
25
|
# @see https://esi.evetech.net/ui/#/Status/get_status
|
26
26
|
def get_status(headers: {}, params: {})
|
27
|
-
|
27
|
+
get_status_raw(headers: headers, params: params).json
|
28
|
+
end
|
29
|
+
|
30
|
+
# EVE Server status.
|
31
|
+
#
|
32
|
+
# This endpoint is cached for up to 30 seconds.
|
33
|
+
#
|
34
|
+
# @esi_version dev
|
35
|
+
# @esi_version legacy
|
36
|
+
# @esi_version v1
|
37
|
+
# @esi_version v2
|
38
|
+
#
|
39
|
+
# @param params [Hash] Additional query string parameters
|
40
|
+
# @param headers [Hash] Additional headers
|
41
|
+
#
|
42
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
43
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
44
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
45
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
46
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
47
|
+
#
|
48
|
+
# @see https://esi.evetech.net/ui/#/Status/get_status
|
49
|
+
def get_status_raw(headers: {}, params: {})
|
50
|
+
get("/status/", headers: headers, params: params)
|
28
51
|
end
|
29
52
|
end
|
30
53
|
end
|