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
data/lib/esi/client/market.rb
CHANGED
@@ -29,10 +29,38 @@ module ESI
|
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Market/get_characters_character_id_orders
|
31
31
|
def get_character_orders(character_id:, headers: {}, params: {})
|
32
|
-
|
32
|
+
get_character_orders_raw(character_id: character_id, headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias get_characters_character_id_orders get_character_orders
|
35
35
|
|
36
|
+
# List open market orders placed by a character.
|
37
|
+
#
|
38
|
+
# This endpoint is cached for up to 1200 seconds.
|
39
|
+
#
|
40
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
41
|
+
#
|
42
|
+
# @esi_scope esi-markets.read_character_orders.v1
|
43
|
+
#
|
44
|
+
# @esi_version dev
|
45
|
+
# @esi_version v2
|
46
|
+
#
|
47
|
+
# @param character_id [Integer] An EVE character ID
|
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::UnauthorizedError] Unauthorized
|
53
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
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/#/Market/get_characters_character_id_orders
|
60
|
+
def get_character_orders_raw(character_id:, headers: {}, params: {})
|
61
|
+
get("/characters/#{character_id}/orders/", headers: headers, params: params)
|
62
|
+
end
|
63
|
+
|
36
64
|
# List cancelled and expired market orders placed by a character up to 90 days in the past.
|
37
65
|
#
|
38
66
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -59,11 +87,40 @@ module ESI
|
|
59
87
|
#
|
60
88
|
# @see https://esi.evetech.net/ui/#/Market/get_characters_character_id_orders_history
|
61
89
|
def get_character_orders_history(character_id:, headers: {}, params: {})
|
62
|
-
responses =
|
90
|
+
responses = get_character_orders_history_raw(character_id: character_id, headers: headers, params: params)
|
63
91
|
responses.map(&:json).reduce([], :concat)
|
64
92
|
end
|
65
93
|
alias get_characters_character_id_orders_history get_character_orders_history
|
66
94
|
|
95
|
+
# List cancelled and expired market orders placed by a character up to 90 days in the past.
|
96
|
+
#
|
97
|
+
# This endpoint is cached for up to 3600 seconds.
|
98
|
+
#
|
99
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
100
|
+
#
|
101
|
+
# @esi_scope esi-markets.read_character_orders.v1
|
102
|
+
#
|
103
|
+
# @esi_version dev
|
104
|
+
# @esi_version legacy
|
105
|
+
# @esi_version v1
|
106
|
+
#
|
107
|
+
# @param character_id [Integer] An EVE character ID
|
108
|
+
# @param params [Hash] Additional query string parameters
|
109
|
+
# @param headers [Hash] Additional headers
|
110
|
+
#
|
111
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
112
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
113
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
114
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
115
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
116
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
117
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
118
|
+
#
|
119
|
+
# @see https://esi.evetech.net/ui/#/Market/get_characters_character_id_orders_history
|
120
|
+
def get_character_orders_history_raw(character_id:, headers: {}, params: {})
|
121
|
+
get("/characters/#{character_id}/orders/history/", headers: headers, params: params)
|
122
|
+
end
|
123
|
+
|
67
124
|
# List open market orders placed on behalf of a corporation.
|
68
125
|
#
|
69
126
|
# This endpoint is cached for up to 1200 seconds.
|
@@ -89,11 +146,39 @@ module ESI
|
|
89
146
|
#
|
90
147
|
# @see https://esi.evetech.net/ui/#/Market/get_corporations_corporation_id_orders
|
91
148
|
def get_corporation_orders(corporation_id:, headers: {}, params: {})
|
92
|
-
responses =
|
149
|
+
responses = get_corporation_orders_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_orders get_corporation_orders
|
96
153
|
|
154
|
+
# List open market orders placed on behalf of a corporation.
|
155
|
+
#
|
156
|
+
# This endpoint is cached for up to 1200 seconds.
|
157
|
+
#
|
158
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
159
|
+
#
|
160
|
+
# @esi_scope esi-markets.read_corporation_orders.v1
|
161
|
+
#
|
162
|
+
# @esi_version dev
|
163
|
+
# @esi_version v3
|
164
|
+
#
|
165
|
+
# @param corporation_id [Integer] An EVE corporation 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/#/Market/get_corporations_corporation_id_orders
|
178
|
+
def get_corporation_orders_raw(corporation_id:, headers: {}, params: {})
|
179
|
+
get("/corporations/#{corporation_id}/orders/", headers: headers, params: params)
|
180
|
+
end
|
181
|
+
|
97
182
|
# List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past.
|
98
183
|
#
|
99
184
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -119,11 +204,39 @@ module ESI
|
|
119
204
|
#
|
120
205
|
# @see https://esi.evetech.net/ui/#/Market/get_corporations_corporation_id_orders_history
|
121
206
|
def get_corporation_orders_history(corporation_id:, headers: {}, params: {})
|
122
|
-
responses =
|
207
|
+
responses = get_corporation_orders_history_raw(corporation_id: corporation_id, headers: headers, params: params)
|
123
208
|
responses.map(&:json).reduce([], :concat)
|
124
209
|
end
|
125
210
|
alias get_corporations_corporation_id_orders_history get_corporation_orders_history
|
126
211
|
|
212
|
+
# List cancelled and expired market orders placed on behalf of a corporation up to 90 days in the past.
|
213
|
+
#
|
214
|
+
# This endpoint is cached for up to 3600 seconds.
|
215
|
+
#
|
216
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
217
|
+
#
|
218
|
+
# @esi_scope esi-markets.read_corporation_orders.v1
|
219
|
+
#
|
220
|
+
# @esi_version dev
|
221
|
+
# @esi_version v2
|
222
|
+
#
|
223
|
+
# @param corporation_id [Integer] An EVE corporation ID
|
224
|
+
# @param params [Hash] Additional query string parameters
|
225
|
+
# @param headers [Hash] Additional headers
|
226
|
+
#
|
227
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
228
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
229
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
230
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
231
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
232
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
233
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
234
|
+
#
|
235
|
+
# @see https://esi.evetech.net/ui/#/Market/get_corporations_corporation_id_orders_history
|
236
|
+
def get_corporation_orders_history_raw(corporation_id:, headers: {}, params: {})
|
237
|
+
get("/corporations/#{corporation_id}/orders/history/", headers: headers, params: params)
|
238
|
+
end
|
239
|
+
|
127
240
|
# Get a list of item groups.
|
128
241
|
#
|
129
242
|
# @esi_version dev
|
@@ -141,10 +254,30 @@ module ESI
|
|
141
254
|
#
|
142
255
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups
|
143
256
|
def get_market_groups(headers: {}, params: {})
|
144
|
-
|
257
|
+
get_market_groups_raw(headers: headers, params: params).json
|
145
258
|
end
|
146
259
|
alias get_markets_groups get_market_groups
|
147
260
|
|
261
|
+
# Get a list of item groups.
|
262
|
+
#
|
263
|
+
# @esi_version dev
|
264
|
+
# @esi_version legacy
|
265
|
+
# @esi_version v1
|
266
|
+
#
|
267
|
+
# @param params [Hash] Additional query string parameters
|
268
|
+
# @param headers [Hash] Additional headers
|
269
|
+
#
|
270
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
271
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
272
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
273
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
274
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
275
|
+
#
|
276
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups
|
277
|
+
def get_market_groups_raw(headers: {}, params: {})
|
278
|
+
get("/markets/groups/", headers: headers, params: params)
|
279
|
+
end
|
280
|
+
|
148
281
|
# Get information on an item group.
|
149
282
|
#
|
150
283
|
# @esi_version dev
|
@@ -164,10 +297,32 @@ module ESI
|
|
164
297
|
#
|
165
298
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups_market_group_id
|
166
299
|
def get_market_groups_market_group(market_group_id:, headers: {}, params: {})
|
167
|
-
|
300
|
+
get_market_groups_market_group_raw(market_group_id: market_group_id, headers: headers, params: params).json
|
168
301
|
end
|
169
302
|
alias get_markets_groups_market_group_id get_market_groups_market_group
|
170
303
|
|
304
|
+
# Get information on an item group.
|
305
|
+
#
|
306
|
+
# @esi_version dev
|
307
|
+
# @esi_version legacy
|
308
|
+
# @esi_version v1
|
309
|
+
#
|
310
|
+
# @param market_group_id [Integer] An Eve item group ID
|
311
|
+
# @param params [Hash] Additional query string parameters
|
312
|
+
# @param headers [Hash] Additional headers
|
313
|
+
#
|
314
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
315
|
+
# @raise [ESI::Errors::NotFoundError] Market group not found
|
316
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
317
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
318
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
319
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
320
|
+
#
|
321
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_groups_market_group_id
|
322
|
+
def get_market_groups_market_group_raw(market_group_id:, headers: {}, params: {})
|
323
|
+
get("/markets/groups/#{market_group_id}/", headers: headers, params: params)
|
324
|
+
end
|
325
|
+
|
171
326
|
# Return a list of prices.
|
172
327
|
#
|
173
328
|
# This endpoint is cached for up to 3600 seconds.
|
@@ -187,10 +342,32 @@ module ESI
|
|
187
342
|
#
|
188
343
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_prices
|
189
344
|
def get_market_prices(headers: {}, params: {})
|
190
|
-
|
345
|
+
get_market_prices_raw(headers: headers, params: params).json
|
191
346
|
end
|
192
347
|
alias get_markets_prices get_market_prices
|
193
348
|
|
349
|
+
# Return a list of prices.
|
350
|
+
#
|
351
|
+
# This endpoint is cached for up to 3600 seconds.
|
352
|
+
#
|
353
|
+
# @esi_version dev
|
354
|
+
# @esi_version legacy
|
355
|
+
# @esi_version v1
|
356
|
+
#
|
357
|
+
# @param params [Hash] Additional query string parameters
|
358
|
+
# @param headers [Hash] Additional headers
|
359
|
+
#
|
360
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
361
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
362
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
363
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
364
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
365
|
+
#
|
366
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_prices
|
367
|
+
def get_market_prices_raw(headers: {}, params: {})
|
368
|
+
get("/markets/prices/", headers: headers, params: params)
|
369
|
+
end
|
370
|
+
|
194
371
|
# Return a list of historical market statistics for the specified type in a region.
|
195
372
|
#
|
196
373
|
# @esi_version dev
|
@@ -213,11 +390,36 @@ module ESI
|
|
213
390
|
#
|
214
391
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_history
|
215
392
|
def get_markets_region_history(region_id:, type_id:, headers: {}, params: {})
|
216
|
-
|
217
|
-
get("/markets/#{region_id}/history/", headers: headers, params: params).json
|
393
|
+
get_markets_region_history_raw(region_id: region_id, type_id: type_id, headers: headers, params: params).json
|
218
394
|
end
|
219
395
|
alias get_markets_region_id_history get_markets_region_history
|
220
396
|
|
397
|
+
# Return a list of historical market statistics for the specified type in a region.
|
398
|
+
#
|
399
|
+
# @esi_version dev
|
400
|
+
# @esi_version legacy
|
401
|
+
# @esi_version v1
|
402
|
+
#
|
403
|
+
# @param region_id [Integer] Return statistics in this region
|
404
|
+
# @param type_id [Integer] Return statistics for this type
|
405
|
+
# @param params [Hash] Additional query string parameters
|
406
|
+
# @param headers [Hash] Additional headers
|
407
|
+
#
|
408
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
409
|
+
# @raise [ESI::Errors::NotFoundError] Type not found
|
410
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
411
|
+
# @raise [ESI::Errors::UnprocessableEntityError] Not found
|
412
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
413
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
414
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
415
|
+
# @raise [ESI::Errors::EveServerError] Internal error thrown from the EVE server
|
416
|
+
#
|
417
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_history
|
418
|
+
def get_markets_region_history_raw(region_id:, type_id:, headers: {}, params: {})
|
419
|
+
params.merge!("type_id" => type_id)
|
420
|
+
get("/markets/#{region_id}/history/", headers: headers, params: params)
|
421
|
+
end
|
422
|
+
|
221
423
|
# Return a list of orders in a region.
|
222
424
|
#
|
223
425
|
# This endpoint is cached for up to 300 seconds.
|
@@ -243,11 +445,39 @@ module ESI
|
|
243
445
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_orders
|
244
446
|
def get_markets_region_orders(region_id:, order_type: "all", type_id: nil, headers: {}, params: {})
|
245
447
|
params.merge!("order_type" => order_type, "type_id" => type_id)
|
246
|
-
responses =
|
448
|
+
responses = get_markets_region_orders_raw(region_id: region_id, order_type: order_type, type_id: type_id, headers: headers, params: params)
|
247
449
|
responses.map(&:json).reduce([], :concat)
|
248
450
|
end
|
249
451
|
alias get_markets_region_id_orders get_markets_region_orders
|
250
452
|
|
453
|
+
# Return a list of orders in a region.
|
454
|
+
#
|
455
|
+
# This endpoint is cached for up to 300 seconds.
|
456
|
+
#
|
457
|
+
# @esi_version dev
|
458
|
+
# @esi_version legacy
|
459
|
+
# @esi_version v1
|
460
|
+
#
|
461
|
+
# @param region_id [Integer] Return orders in this region
|
462
|
+
# @param order_type [String] Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. Must be one of: `buy`, `sell`, `all`
|
463
|
+
# @param type_id [Integer] Return orders only for this type
|
464
|
+
# @param params [Hash] Additional query string parameters
|
465
|
+
# @param headers [Hash] Additional headers
|
466
|
+
#
|
467
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
468
|
+
# @raise [ESI::Errors::NotFoundError] Not found
|
469
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
470
|
+
# @raise [ESI::Errors::UnprocessableEntityError] Not found
|
471
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
472
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
473
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
474
|
+
#
|
475
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_orders
|
476
|
+
def get_markets_region_orders_raw(region_id:, order_type: "all", type_id: nil, headers: {}, params: {})
|
477
|
+
params.merge!("order_type" => order_type, "type_id" => type_id)
|
478
|
+
get("/markets/#{region_id}/orders/", headers: headers, params: params)
|
479
|
+
end
|
480
|
+
|
251
481
|
# Return a list of type IDs that have active orders in the region, for efficient market indexing.
|
252
482
|
#
|
253
483
|
# This endpoint is cached for up to 600 seconds.
|
@@ -268,11 +498,34 @@ module ESI
|
|
268
498
|
#
|
269
499
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_types
|
270
500
|
def get_markets_region_types(region_id:, headers: {}, params: {})
|
271
|
-
responses =
|
501
|
+
responses = get_markets_region_types_raw(region_id: region_id, headers: headers, params: params)
|
272
502
|
responses.map(&:json).reduce([], :concat)
|
273
503
|
end
|
274
504
|
alias get_markets_region_id_types get_markets_region_types
|
275
505
|
|
506
|
+
# Return a list of type IDs that have active orders in the region, for efficient market indexing.
|
507
|
+
#
|
508
|
+
# This endpoint is cached for up to 600 seconds.
|
509
|
+
#
|
510
|
+
# @esi_version dev
|
511
|
+
# @esi_version legacy
|
512
|
+
# @esi_version v1
|
513
|
+
#
|
514
|
+
# @param region_id [Integer] Return statistics in this region
|
515
|
+
# @param params [Hash] Additional query string parameters
|
516
|
+
# @param headers [Hash] Additional headers
|
517
|
+
#
|
518
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
519
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
520
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
521
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
522
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
523
|
+
#
|
524
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_region_id_types
|
525
|
+
def get_markets_region_types_raw(region_id:, headers: {}, params: {})
|
526
|
+
get("/markets/#{region_id}/types/", headers: headers, params: params)
|
527
|
+
end
|
528
|
+
|
276
529
|
# Return all orders in a structure.
|
277
530
|
#
|
278
531
|
# This endpoint is cached for up to 300 seconds.
|
@@ -299,10 +552,39 @@ module ESI
|
|
299
552
|
#
|
300
553
|
# @see https://esi.evetech.net/ui/#/Market/get_markets_structures_structure_id
|
301
554
|
def get_markets_structure(structure_id:, headers: {}, params: {})
|
302
|
-
responses =
|
555
|
+
responses = get_markets_structure_raw(structure_id: structure_id, headers: headers, params: params)
|
303
556
|
responses.map(&:json).reduce([], :concat)
|
304
557
|
end
|
305
558
|
alias get_markets_structures_structure_id get_markets_structure
|
559
|
+
|
560
|
+
# Return all orders in a structure.
|
561
|
+
#
|
562
|
+
# This endpoint is cached for up to 300 seconds.
|
563
|
+
#
|
564
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
565
|
+
#
|
566
|
+
# @esi_scope esi-markets.structure_markets.v1
|
567
|
+
#
|
568
|
+
# @esi_version dev
|
569
|
+
# @esi_version legacy
|
570
|
+
# @esi_version v1
|
571
|
+
#
|
572
|
+
# @param structure_id [Integer] Return orders in this structure
|
573
|
+
# @param params [Hash] Additional query string parameters
|
574
|
+
# @param headers [Hash] Additional headers
|
575
|
+
#
|
576
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
577
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
578
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
579
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
580
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
581
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
582
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
583
|
+
#
|
584
|
+
# @see https://esi.evetech.net/ui/#/Market/get_markets_structures_structure_id
|
585
|
+
def get_markets_structure_raw(structure_id:, headers: {}, params: {})
|
586
|
+
get("/markets/structures/#{structure_id}/", headers: headers, params: params)
|
587
|
+
end
|
306
588
|
end
|
307
589
|
end
|
308
590
|
end
|
@@ -30,10 +30,39 @@ module ESI
|
|
30
30
|
#
|
31
31
|
# @see https://esi.evetech.net/ui/#/Opportunities/get_characters_character_id_opportunities
|
32
32
|
def get_character_opportunities(character_id:, headers: {}, params: {})
|
33
|
-
|
33
|
+
get_character_opportunities_raw(character_id: character_id, headers: headers, params: params).json
|
34
34
|
end
|
35
35
|
alias get_characters_character_id_opportunities get_character_opportunities
|
36
36
|
|
37
|
+
# Return a list of tasks finished by a character.
|
38
|
+
#
|
39
|
+
# This endpoint is cached for up to 3600 seconds.
|
40
|
+
#
|
41
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
42
|
+
#
|
43
|
+
# @esi_scope esi-characters.read_opportunities.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/#/Opportunities/get_characters_character_id_opportunities
|
62
|
+
def get_character_opportunities_raw(character_id:, headers: {}, params: {})
|
63
|
+
get("/characters/#{character_id}/opportunities/", headers: headers, params: params)
|
64
|
+
end
|
65
|
+
|
37
66
|
# Return information of an opportunities group.
|
38
67
|
#
|
39
68
|
# @esi_version dev
|
@@ -52,10 +81,31 @@ module ESI
|
|
52
81
|
#
|
53
82
|
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_groups_group_id
|
54
83
|
def get_opportunities_group(group_id:, headers: {}, params: {})
|
55
|
-
|
84
|
+
get_opportunities_group_raw(group_id: group_id, headers: headers, params: params).json
|
56
85
|
end
|
57
86
|
alias get_opportunities_groups_group_id get_opportunities_group
|
58
87
|
|
88
|
+
# Return information of an opportunities group.
|
89
|
+
#
|
90
|
+
# @esi_version dev
|
91
|
+
# @esi_version legacy
|
92
|
+
# @esi_version v1
|
93
|
+
#
|
94
|
+
# @param group_id [Integer] ID of an opportunities group
|
95
|
+
# @param params [Hash] Additional query string parameters
|
96
|
+
# @param headers [Hash] Additional headers
|
97
|
+
#
|
98
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
99
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
100
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
101
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
102
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
103
|
+
#
|
104
|
+
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_groups_group_id
|
105
|
+
def get_opportunities_group_raw(group_id:, headers: {}, params: {})
|
106
|
+
get("/opportunities/groups/#{group_id}/", headers: headers, params: params)
|
107
|
+
end
|
108
|
+
|
59
109
|
# Return information of an opportunities task.
|
60
110
|
#
|
61
111
|
# @esi_version dev
|
@@ -74,10 +124,31 @@ module ESI
|
|
74
124
|
#
|
75
125
|
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_tasks_task_id
|
76
126
|
def get_opportunities_task(task_id:, headers: {}, params: {})
|
77
|
-
|
127
|
+
get_opportunities_task_raw(task_id: task_id, headers: headers, params: params).json
|
78
128
|
end
|
79
129
|
alias get_opportunities_tasks_task_id get_opportunities_task
|
80
130
|
|
131
|
+
# Return information of an opportunities task.
|
132
|
+
#
|
133
|
+
# @esi_version dev
|
134
|
+
# @esi_version legacy
|
135
|
+
# @esi_version v1
|
136
|
+
#
|
137
|
+
# @param task_id [Integer] ID of an opportunities task
|
138
|
+
# @param params [Hash] Additional query string parameters
|
139
|
+
# @param headers [Hash] Additional headers
|
140
|
+
#
|
141
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
142
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
143
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
144
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
145
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
146
|
+
#
|
147
|
+
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_tasks_task_id
|
148
|
+
def get_opportunities_task_raw(task_id:, headers: {}, params: {})
|
149
|
+
get("/opportunities/tasks/#{task_id}/", headers: headers, params: params)
|
150
|
+
end
|
151
|
+
|
81
152
|
# Return a list of opportunities groups.
|
82
153
|
#
|
83
154
|
# @esi_version dev
|
@@ -95,10 +166,30 @@ module ESI
|
|
95
166
|
#
|
96
167
|
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_groups
|
97
168
|
def get_opportunity_groups(headers: {}, params: {})
|
98
|
-
|
169
|
+
get_opportunity_groups_raw(headers: headers, params: params).json
|
99
170
|
end
|
100
171
|
alias get_opportunities_groups get_opportunity_groups
|
101
172
|
|
173
|
+
# Return a list of opportunities groups.
|
174
|
+
#
|
175
|
+
# @esi_version dev
|
176
|
+
# @esi_version legacy
|
177
|
+
# @esi_version v1
|
178
|
+
#
|
179
|
+
# @param params [Hash] Additional query string parameters
|
180
|
+
# @param headers [Hash] Additional headers
|
181
|
+
#
|
182
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
183
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
184
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
185
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
186
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
187
|
+
#
|
188
|
+
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_groups
|
189
|
+
def get_opportunity_groups_raw(headers: {}, params: {})
|
190
|
+
get("/opportunities/groups/", headers: headers, params: params)
|
191
|
+
end
|
192
|
+
|
102
193
|
# Return a list of opportunities tasks.
|
103
194
|
#
|
104
195
|
# @esi_version dev
|
@@ -116,9 +207,29 @@ module ESI
|
|
116
207
|
#
|
117
208
|
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_tasks
|
118
209
|
def get_opportunity_tasks(headers: {}, params: {})
|
119
|
-
|
210
|
+
get_opportunity_tasks_raw(headers: headers, params: params).json
|
120
211
|
end
|
121
212
|
alias get_opportunities_tasks get_opportunity_tasks
|
213
|
+
|
214
|
+
# Return a list of opportunities tasks.
|
215
|
+
#
|
216
|
+
# @esi_version dev
|
217
|
+
# @esi_version legacy
|
218
|
+
# @esi_version v1
|
219
|
+
#
|
220
|
+
# @param params [Hash] Additional query string parameters
|
221
|
+
# @param headers [Hash] Additional headers
|
222
|
+
#
|
223
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
224
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
225
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
226
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
227
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
228
|
+
#
|
229
|
+
# @see https://esi.evetech.net/ui/#/Opportunities/get_opportunities_tasks
|
230
|
+
def get_opportunity_tasks_raw(headers: {}, params: {})
|
231
|
+
get("/opportunities/tasks/", headers: headers, params: params)
|
232
|
+
end
|
122
233
|
end
|
123
234
|
end
|
124
235
|
end
|