esi-sdk 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.editorconfig +9 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/ISSUE_TEMPLATE/support.md +7 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +37 -0
- data/.github/dependabot.yml +17 -0
- data/.github/workflows/cicd.yml +181 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.rubocop.yml +36 -0
- data/.ruby-version +1 -0
- data/.yardext.rb +18 -0
- data/.yardopts +17 -0
- data/CHANGELOG.md +17 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +69 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +141 -0
- data/LICENSE.txt +21 -0
- data/README.md +87 -0
- data/Rakefile +349 -0
- data/SECURITY.md +13 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/esi-sdk.gemspec +32 -0
- data/exe/esi-sdk +4 -0
- data/lib/esi/client/alliance.rb +104 -0
- data/lib/esi/client/assets.rb +179 -0
- data/lib/esi/client/bookmarks.rb +126 -0
- data/lib/esi/client/calendar.rb +139 -0
- data/lib/esi/client/character.rb +389 -0
- data/lib/esi/client/clones.rb +69 -0
- data/lib/esi/client/contacts.rb +277 -0
- data/lib/esi/client/contracts.rb +274 -0
- data/lib/esi/client/corporation.rb +626 -0
- data/lib/esi/client/dogma.rb +117 -0
- data/lib/esi/client/faction_warfare.rb +196 -0
- data/lib/esi/client/fittings.rb +93 -0
- data/lib/esi/client/fleets.rb +428 -0
- data/lib/esi/client/incursions.rb +30 -0
- data/lib/esi/client/industry.rb +237 -0
- data/lib/esi/client/insurance.rb +30 -0
- data/lib/esi/client/killmails.rb +95 -0
- data/lib/esi/client/location.rb +100 -0
- data/lib/esi/client/loyalty.rb +61 -0
- data/lib/esi/client/mail.rb +244 -0
- data/lib/esi/client/market.rb +302 -0
- data/lib/esi/client/opportunities.rb +124 -0
- data/lib/esi/client/planetary_interaction.rb +122 -0
- data/lib/esi/client/routes.rb +37 -0
- data/lib/esi/client/search.rb +68 -0
- data/lib/esi/client/skills.rb +97 -0
- data/lib/esi/client/sovereignty.rb +74 -0
- data/lib/esi/client/status.rb +31 -0
- data/lib/esi/client/universe.rb +640 -0
- data/lib/esi/client/user_interface.rb +145 -0
- data/lib/esi/client/wallet.rb +191 -0
- data/lib/esi/client/wars.rb +82 -0
- data/lib/esi/client.rb +225 -0
- data/lib/esi/errors.rb +51 -0
- data/lib/esi/version.rb +5 -0
- data/lib/esi-sdk.rb +8 -0
- data/release.config.js +32 -0
- data/yard/fulldoc/html/css/pygments-default.css +69 -0
- data/yard/fulldoc/html/setup.rb +6 -0
- data/yard/layout/html/setup.rb +6 -0
- metadata +156 -0
@@ -0,0 +1,389 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ESI
|
4
|
+
class Client
|
5
|
+
# ESI character operations.
|
6
|
+
module Character
|
7
|
+
# Public information about a character.
|
8
|
+
#
|
9
|
+
# This endpoint is cached for up to 86400 seconds.
|
10
|
+
#
|
11
|
+
# @esi_version dev
|
12
|
+
# @esi_version v4
|
13
|
+
#
|
14
|
+
# @param character_id [Integer,String] An EVE character ID
|
15
|
+
# @param params [Hash] Additional query string parameters
|
16
|
+
# @param headers [Hash] Additional headers
|
17
|
+
#
|
18
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
19
|
+
# @raise [ESI::Errors::NotFoundError] Character not found
|
20
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
21
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
22
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
23
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
24
|
+
#
|
25
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id
|
26
|
+
def get_character(character_id:, params: {}, headers: {})
|
27
|
+
get("/characters/#{character_id}/", headers: headers, params: params)
|
28
|
+
end
|
29
|
+
alias get_characters_character_id get_character
|
30
|
+
|
31
|
+
# Return a list of agents research information for a character. The formula for finding the current research points with an agent is: currentPoints = remainderPoints + pointsPerDay * days(currentTime - researchStartDate).
|
32
|
+
#
|
33
|
+
# This endpoint is cached for up to 3600 seconds.
|
34
|
+
#
|
35
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
36
|
+
#
|
37
|
+
# @esi_scope esi-characters.read_agents_research.v1
|
38
|
+
#
|
39
|
+
# @esi_version dev
|
40
|
+
# @esi_version v2
|
41
|
+
#
|
42
|
+
# @param character_id [Integer,String] An EVE character ID
|
43
|
+
# @param params [Hash] Additional query string parameters
|
44
|
+
# @param headers [Hash] Additional headers
|
45
|
+
#
|
46
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
47
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
48
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
49
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
50
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
51
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
52
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
53
|
+
#
|
54
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_agents_research
|
55
|
+
def get_character_agents_research(character_id:, params: {}, headers: {})
|
56
|
+
get("/characters/#{character_id}/agents_research/", headers: headers, params: params)
|
57
|
+
end
|
58
|
+
alias get_characters_character_id_agents_research get_character_agents_research
|
59
|
+
|
60
|
+
# Return a list of blueprints the character owns.
|
61
|
+
#
|
62
|
+
# This endpoint is cached for up to 3600 seconds.
|
63
|
+
#
|
64
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
65
|
+
#
|
66
|
+
# @esi_scope esi-characters.read_blueprints.v1
|
67
|
+
#
|
68
|
+
# @esi_version dev
|
69
|
+
# @esi_version v3
|
70
|
+
#
|
71
|
+
# @param character_id [Integer,String] An EVE character ID
|
72
|
+
# @param params [Hash] Additional query string parameters
|
73
|
+
# @param headers [Hash] Additional headers
|
74
|
+
#
|
75
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
76
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
77
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
78
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
79
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
80
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
81
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
82
|
+
#
|
83
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_blueprints
|
84
|
+
def get_character_blueprints(character_id:, params: {}, headers: {})
|
85
|
+
get("/characters/#{character_id}/blueprints/", headers: headers, params: params)
|
86
|
+
end
|
87
|
+
alias get_characters_character_id_blueprints get_character_blueprints
|
88
|
+
|
89
|
+
# Get a list of all the corporations a character has been a member of.
|
90
|
+
#
|
91
|
+
# This endpoint is cached for up to 86400 seconds.
|
92
|
+
#
|
93
|
+
# @esi_version dev
|
94
|
+
# @esi_version v2
|
95
|
+
#
|
96
|
+
# @param character_id [Integer,String] An EVE character ID
|
97
|
+
# @param params [Hash] Additional query string parameters
|
98
|
+
# @param headers [Hash] Additional headers
|
99
|
+
#
|
100
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
101
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
102
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
103
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
104
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
105
|
+
#
|
106
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_corporationhistory
|
107
|
+
def get_character_corporationhistory(character_id:, params: {}, headers: {})
|
108
|
+
get("/characters/#{character_id}/corporationhistory/", headers: headers, params: params)
|
109
|
+
end
|
110
|
+
alias get_character_corporation_history get_character_corporationhistory
|
111
|
+
alias get_characters_character_id_corporationhistory get_character_corporationhistory
|
112
|
+
|
113
|
+
# Return a character's jump activation and fatigue information.
|
114
|
+
#
|
115
|
+
# This endpoint is cached for up to 300 seconds.
|
116
|
+
#
|
117
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
118
|
+
#
|
119
|
+
# @esi_scope esi-characters.read_fatigue.v1
|
120
|
+
#
|
121
|
+
# @esi_version dev
|
122
|
+
# @esi_version v2
|
123
|
+
#
|
124
|
+
# @param character_id [Integer,String] An EVE character ID
|
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::UnauthorizedError] Unauthorized
|
130
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
131
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
132
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
133
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
134
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
135
|
+
#
|
136
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_fatigue
|
137
|
+
def get_character_fatigue(character_id:, params: {}, headers: {})
|
138
|
+
get("/characters/#{character_id}/fatigue/", headers: headers, params: params)
|
139
|
+
end
|
140
|
+
alias get_characters_character_id_fatigue get_character_fatigue
|
141
|
+
|
142
|
+
# Return a list of medals the character has.
|
143
|
+
#
|
144
|
+
# This endpoint is cached for up to 3600 seconds.
|
145
|
+
#
|
146
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
147
|
+
#
|
148
|
+
# @esi_scope esi-characters.read_medals.v1
|
149
|
+
#
|
150
|
+
# @esi_version dev
|
151
|
+
# @esi_version v2
|
152
|
+
#
|
153
|
+
# @param character_id [Integer,String] An EVE character ID
|
154
|
+
# @param params [Hash] Additional query string parameters
|
155
|
+
# @param headers [Hash] Additional headers
|
156
|
+
#
|
157
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
158
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
159
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
160
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
161
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
162
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
163
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
164
|
+
#
|
165
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_medals
|
166
|
+
def get_character_medals(character_id:, params: {}, headers: {})
|
167
|
+
get("/characters/#{character_id}/medals/", headers: headers, params: params)
|
168
|
+
end
|
169
|
+
alias get_characters_character_id_medals get_character_medals
|
170
|
+
|
171
|
+
# Return notifications about having been added to someone's contact list.
|
172
|
+
#
|
173
|
+
# This endpoint is cached for up to 600 seconds.
|
174
|
+
#
|
175
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
176
|
+
#
|
177
|
+
# @esi_scope esi-characters.read_notifications.v1
|
178
|
+
#
|
179
|
+
# @esi_version dev
|
180
|
+
# @esi_version v2
|
181
|
+
#
|
182
|
+
# @param character_id [Integer,String] An EVE character ID
|
183
|
+
# @param params [Hash] Additional query string parameters
|
184
|
+
# @param headers [Hash] Additional headers
|
185
|
+
#
|
186
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
187
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
188
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
189
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
190
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
191
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
192
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
193
|
+
#
|
194
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications_contacts
|
195
|
+
def get_character_notification_contacts(character_id:, params: {}, headers: {})
|
196
|
+
get("/characters/#{character_id}/notifications/contacts/", headers: headers, params: params)
|
197
|
+
end
|
198
|
+
alias get_characters_character_id_notifications_contacts get_character_notification_contacts
|
199
|
+
|
200
|
+
# Return character notifications.
|
201
|
+
#
|
202
|
+
# This endpoint is cached for up to 600 seconds.
|
203
|
+
#
|
204
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
205
|
+
#
|
206
|
+
# @esi_scope esi-characters.read_notifications.v1
|
207
|
+
#
|
208
|
+
# @esi_version dev
|
209
|
+
# @esi_version v5
|
210
|
+
# @esi_version v6
|
211
|
+
#
|
212
|
+
# @param character_id [Integer,String] An EVE character ID
|
213
|
+
# @param params [Hash] Additional query string parameters
|
214
|
+
# @param headers [Hash] Additional headers
|
215
|
+
#
|
216
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
217
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
218
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
219
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
220
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
221
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
222
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
223
|
+
#
|
224
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications
|
225
|
+
def get_character_notifications(character_id:, params: {}, headers: {})
|
226
|
+
get("/characters/#{character_id}/notifications/", headers: headers, params: params)
|
227
|
+
end
|
228
|
+
alias get_characters_character_id_notifications get_character_notifications
|
229
|
+
|
230
|
+
# Get portrait urls for a character.
|
231
|
+
#
|
232
|
+
# @esi_version dev
|
233
|
+
# @esi_version v2
|
234
|
+
# @esi_version v3
|
235
|
+
#
|
236
|
+
# @param character_id [Integer,String] An EVE character ID
|
237
|
+
# @param params [Hash] Additional query string parameters
|
238
|
+
# @param headers [Hash] Additional headers
|
239
|
+
#
|
240
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
241
|
+
# @raise [ESI::Errors::NotFoundError] No image server for this datasource
|
242
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
243
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
244
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
245
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
246
|
+
#
|
247
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_portrait
|
248
|
+
def get_character_portrait(character_id:, params: {}, headers: {})
|
249
|
+
get("/characters/#{character_id}/portrait/", headers: headers, params: params)
|
250
|
+
end
|
251
|
+
alias get_characters_character_id_portrait get_character_portrait
|
252
|
+
|
253
|
+
# Returns a character's corporation roles.
|
254
|
+
#
|
255
|
+
# This endpoint is cached for up to 3600 seconds.
|
256
|
+
#
|
257
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
258
|
+
#
|
259
|
+
# @esi_scope esi-characters.read_corporation_roles.v1
|
260
|
+
#
|
261
|
+
# @esi_version dev
|
262
|
+
# @esi_version v3
|
263
|
+
#
|
264
|
+
# @param character_id [Integer,String] An EVE character ID
|
265
|
+
# @param params [Hash] Additional query string parameters
|
266
|
+
# @param headers [Hash] Additional headers
|
267
|
+
#
|
268
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
269
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
270
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
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/#/Character/get_characters_character_id_roles
|
277
|
+
def get_character_roles(character_id:, params: {}, headers: {})
|
278
|
+
get("/characters/#{character_id}/roles/", headers: headers, params: params)
|
279
|
+
end
|
280
|
+
alias get_characters_character_id_roles get_character_roles
|
281
|
+
|
282
|
+
# Return character standings from agents, NPC corporations, and factions.
|
283
|
+
#
|
284
|
+
# This endpoint is cached for up to 3600 seconds.
|
285
|
+
#
|
286
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
287
|
+
#
|
288
|
+
# @esi_scope esi-characters.read_standings.v1
|
289
|
+
#
|
290
|
+
# @esi_version dev
|
291
|
+
# @esi_version v2
|
292
|
+
#
|
293
|
+
# @param character_id [Integer,String] An EVE character ID
|
294
|
+
# @param params [Hash] Additional query string parameters
|
295
|
+
# @param headers [Hash] Additional headers
|
296
|
+
#
|
297
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
298
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
299
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
300
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
301
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
302
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
303
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
304
|
+
#
|
305
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_standings
|
306
|
+
def get_character_standings(character_id:, params: {}, headers: {})
|
307
|
+
get("/characters/#{character_id}/standings/", headers: headers, params: params)
|
308
|
+
end
|
309
|
+
alias get_characters_character_id_standings get_character_standings
|
310
|
+
|
311
|
+
# Returns a character's titles.
|
312
|
+
#
|
313
|
+
# This endpoint is cached for up to 3600 seconds.
|
314
|
+
#
|
315
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
316
|
+
#
|
317
|
+
# @esi_scope esi-characters.read_titles.v1
|
318
|
+
#
|
319
|
+
# @esi_version dev
|
320
|
+
# @esi_version v2
|
321
|
+
#
|
322
|
+
# @param character_id [Integer,String] An EVE character ID
|
323
|
+
# @param params [Hash] Additional query string parameters
|
324
|
+
# @param headers [Hash] Additional headers
|
325
|
+
#
|
326
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
327
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
328
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
329
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
330
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
331
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
332
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
333
|
+
#
|
334
|
+
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_titles
|
335
|
+
def get_character_titles(character_id:, params: {}, headers: {})
|
336
|
+
get("/characters/#{character_id}/titles/", headers: headers, params: params)
|
337
|
+
end
|
338
|
+
alias get_characters_character_id_titles get_character_titles
|
339
|
+
|
340
|
+
# Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost.
|
341
|
+
#
|
342
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
343
|
+
#
|
344
|
+
# @esi_scope esi-characters.read_contacts.v1
|
345
|
+
#
|
346
|
+
# @esi_version dev
|
347
|
+
# @esi_version v5
|
348
|
+
#
|
349
|
+
# @param character_id [Integer,String] An EVE character ID
|
350
|
+
# @param characters [Array] The target characters to calculate the charge for
|
351
|
+
# @param headers [Hash] Additional headers
|
352
|
+
#
|
353
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
354
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
355
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
356
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
357
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
358
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
359
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
360
|
+
#
|
361
|
+
# @see https://esi.evetech.net/ui/#/Character/post_characters_character_id_cspa
|
362
|
+
def post_character_cspa(character_id:, characters:, headers: {})
|
363
|
+
post("/characters/#{character_id}/cspa/", headers: headers, payload: characters)
|
364
|
+
end
|
365
|
+
alias post_characters_character_id_cspa post_character_cspa
|
366
|
+
|
367
|
+
# Bulk lookup of character IDs to corporation, alliance and faction.
|
368
|
+
#
|
369
|
+
# This endpoint is cached for up to 3600 seconds.
|
370
|
+
#
|
371
|
+
# @esi_version dev
|
372
|
+
# @esi_version v2
|
373
|
+
#
|
374
|
+
# @param characters [Array] The character IDs to fetch affiliations for. All characters must exist, or none will be returned
|
375
|
+
# @param headers [Hash] Additional headers
|
376
|
+
#
|
377
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
378
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
379
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
380
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
381
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
382
|
+
#
|
383
|
+
# @see https://esi.evetech.net/ui/#/Character/post_characters_affiliation
|
384
|
+
def post_characters_affiliation(characters:, headers: {})
|
385
|
+
post("/characters/affiliation/", headers: headers, payload: characters)
|
386
|
+
end
|
387
|
+
end
|
388
|
+
end
|
389
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ESI
|
4
|
+
class Client
|
5
|
+
# ESI clones operations.
|
6
|
+
module Clone
|
7
|
+
# A list of the character's clones.
|
8
|
+
#
|
9
|
+
# This endpoint is cached for up to 120 seconds.
|
10
|
+
#
|
11
|
+
# This endpoint requires authorization (see {ESI::Client#authorize}).
|
12
|
+
#
|
13
|
+
# @esi_scope esi-clones.read_clones.v1
|
14
|
+
#
|
15
|
+
# @esi_version dev
|
16
|
+
# @esi_version v3
|
17
|
+
# @esi_version v4
|
18
|
+
#
|
19
|
+
# @param character_id [Integer,String] An EVE character ID
|
20
|
+
# @param params [Hash] Additional query string parameters
|
21
|
+
# @param headers [Hash] Additional headers
|
22
|
+
#
|
23
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
24
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
25
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
26
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
27
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
28
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
29
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
30
|
+
#
|
31
|
+
# @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_clones
|
32
|
+
def get_character_clones(character_id:, params: {}, headers: {})
|
33
|
+
get("/characters/#{character_id}/clones/", headers: headers, params: params)
|
34
|
+
end
|
35
|
+
alias get_characters_character_id_clones get_character_clones
|
36
|
+
|
37
|
+
# Return implants on the active clone 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-clones.read_implants.v1
|
44
|
+
#
|
45
|
+
# @esi_version dev
|
46
|
+
# @esi_version legacy
|
47
|
+
# @esi_version v1
|
48
|
+
# @esi_version v2
|
49
|
+
#
|
50
|
+
# @param character_id [Integer,String] An EVE character ID
|
51
|
+
# @param params [Hash] Additional query string parameters
|
52
|
+
# @param headers [Hash] Additional headers
|
53
|
+
#
|
54
|
+
# @raise [ESI::Errors::BadRequestError] Bad request
|
55
|
+
# @raise [ESI::Errors::UnauthorizedError] Unauthorized
|
56
|
+
# @raise [ESI::Errors::ForbiddenError] Forbidden
|
57
|
+
# @raise [ESI::Errors::ErrorLimitedError] Error limited
|
58
|
+
# @raise [ESI::Errors::InternalServerError] Internal server error
|
59
|
+
# @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
|
60
|
+
# @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
|
61
|
+
#
|
62
|
+
# @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_implants
|
63
|
+
def get_character_implants(character_id:, params: {}, headers: {})
|
64
|
+
get("/characters/#{character_id}/implants/", headers: headers, params: params)
|
65
|
+
end
|
66
|
+
alias get_characters_character_id_implants get_character_implants
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|