esi-sdk 2.0.0 → 2.1.0

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.
@@ -24,10 +24,33 @@ module ESI
24
24
  #
25
25
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id
26
26
  def get_character(character_id:, headers: {}, params: {})
27
- get("/characters/#{character_id}/", headers: headers, params: params).json
27
+ get_character_raw(character_id: character_id, headers: headers, params: params).json
28
28
  end
29
29
  alias get_characters_character_id get_character
30
30
 
31
+ # Public information about a character.
32
+ #
33
+ # This endpoint is cached for up to 86400 seconds.
34
+ #
35
+ # @esi_version dev
36
+ # @esi_version v5
37
+ #
38
+ # @param character_id [Integer] An EVE character ID
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::NotFoundError] Character not found
44
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
45
+ # @raise [ESI::Errors::InternalServerError] Internal server error
46
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
47
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
48
+ #
49
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id
50
+ def get_character_raw(character_id:, headers: {}, params: {})
51
+ get("/characters/#{character_id}/", headers: headers, params: params)
52
+ end
53
+
31
54
  # 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
55
  #
33
56
  # This endpoint is cached for up to 3600 seconds.
@@ -53,10 +76,38 @@ module ESI
53
76
  #
54
77
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_agents_research
55
78
  def get_character_agents_research(character_id:, headers: {}, params: {})
56
- get("/characters/#{character_id}/agents_research/", headers: headers, params: params).json
79
+ get_character_agents_research_raw(character_id: character_id, headers: headers, params: params).json
57
80
  end
58
81
  alias get_characters_character_id_agents_research get_character_agents_research
59
82
 
83
+ # 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).
84
+ #
85
+ # This endpoint is cached for up to 3600 seconds.
86
+ #
87
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
88
+ #
89
+ # @esi_scope esi-characters.read_agents_research.v1
90
+ #
91
+ # @esi_version dev
92
+ # @esi_version v2
93
+ #
94
+ # @param character_id [Integer] An EVE character ID
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::UnauthorizedError] Unauthorized
100
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
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_agents_research
107
+ def get_character_agents_research_raw(character_id:, headers: {}, params: {})
108
+ get("/characters/#{character_id}/agents_research/", headers: headers, params: params)
109
+ end
110
+
60
111
  # Return a list of blueprints the character owns.
61
112
  #
62
113
  # This endpoint is cached for up to 3600 seconds.
@@ -82,11 +133,39 @@ module ESI
82
133
  #
83
134
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_blueprints
84
135
  def get_character_blueprints(character_id:, headers: {}, params: {})
85
- responses = get("/characters/#{character_id}/blueprints/", headers: headers, params: params)
136
+ responses = get_character_blueprints_raw(character_id: character_id, headers: headers, params: params)
86
137
  responses.map(&:json).reduce([], :concat)
87
138
  end
88
139
  alias get_characters_character_id_blueprints get_character_blueprints
89
140
 
141
+ # Return a list of blueprints the character owns.
142
+ #
143
+ # This endpoint is cached for up to 3600 seconds.
144
+ #
145
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
146
+ #
147
+ # @esi_scope esi-characters.read_blueprints.v1
148
+ #
149
+ # @esi_version dev
150
+ # @esi_version v3
151
+ #
152
+ # @param character_id [Integer] An EVE character ID
153
+ # @param params [Hash] Additional query string parameters
154
+ # @param headers [Hash] Additional headers
155
+ #
156
+ # @raise [ESI::Errors::BadRequestError] Bad request
157
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
158
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
159
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
160
+ # @raise [ESI::Errors::InternalServerError] Internal server error
161
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
162
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
163
+ #
164
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_blueprints
165
+ def get_character_blueprints_raw(character_id:, headers: {}, params: {})
166
+ get("/characters/#{character_id}/blueprints/", headers: headers, params: params)
167
+ end
168
+
90
169
  # Get a list of all the corporations a character has been a member of.
91
170
  #
92
171
  # This endpoint is cached for up to 86400 seconds.
@@ -106,11 +185,33 @@ module ESI
106
185
  #
107
186
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_corporationhistory
108
187
  def get_character_corporationhistory(character_id:, headers: {}, params: {})
109
- get("/characters/#{character_id}/corporationhistory/", headers: headers, params: params).json
188
+ get_character_corporationhistory_raw(character_id: character_id, headers: headers, params: params).json
110
189
  end
111
190
  alias get_character_corporation_history get_character_corporationhistory
112
191
  alias get_characters_character_id_corporationhistory get_character_corporationhistory
113
192
 
193
+ # Get a list of all the corporations a character has been a member of.
194
+ #
195
+ # This endpoint is cached for up to 86400 seconds.
196
+ #
197
+ # @esi_version dev
198
+ # @esi_version v2
199
+ #
200
+ # @param character_id [Integer] An EVE character ID
201
+ # @param params [Hash] Additional query string parameters
202
+ # @param headers [Hash] Additional headers
203
+ #
204
+ # @raise [ESI::Errors::BadRequestError] Bad request
205
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
206
+ # @raise [ESI::Errors::InternalServerError] Internal server error
207
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
208
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
209
+ #
210
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_corporationhistory
211
+ def get_character_corporationhistory_raw(character_id:, headers: {}, params: {})
212
+ get("/characters/#{character_id}/corporationhistory/", headers: headers, params: params)
213
+ end
214
+
114
215
  # Return a character's jump activation and fatigue information.
115
216
  #
116
217
  # This endpoint is cached for up to 300 seconds.
@@ -136,10 +237,38 @@ module ESI
136
237
  #
137
238
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_fatigue
138
239
  def get_character_fatigue(character_id:, headers: {}, params: {})
139
- get("/characters/#{character_id}/fatigue/", headers: headers, params: params).json
240
+ get_character_fatigue_raw(character_id: character_id, headers: headers, params: params).json
140
241
  end
141
242
  alias get_characters_character_id_fatigue get_character_fatigue
142
243
 
244
+ # Return a character's jump activation and fatigue information.
245
+ #
246
+ # This endpoint is cached for up to 300 seconds.
247
+ #
248
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
249
+ #
250
+ # @esi_scope esi-characters.read_fatigue.v1
251
+ #
252
+ # @esi_version dev
253
+ # @esi_version v2
254
+ #
255
+ # @param character_id [Integer] An EVE character ID
256
+ # @param params [Hash] Additional query string parameters
257
+ # @param headers [Hash] Additional headers
258
+ #
259
+ # @raise [ESI::Errors::BadRequestError] Bad request
260
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
261
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
262
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
263
+ # @raise [ESI::Errors::InternalServerError] Internal server error
264
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
265
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
266
+ #
267
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_fatigue
268
+ def get_character_fatigue_raw(character_id:, headers: {}, params: {})
269
+ get("/characters/#{character_id}/fatigue/", headers: headers, params: params)
270
+ end
271
+
143
272
  # Return a list of medals the character has.
144
273
  #
145
274
  # This endpoint is cached for up to 3600 seconds.
@@ -165,10 +294,38 @@ module ESI
165
294
  #
166
295
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_medals
167
296
  def get_character_medals(character_id:, headers: {}, params: {})
168
- get("/characters/#{character_id}/medals/", headers: headers, params: params).json
297
+ get_character_medals_raw(character_id: character_id, headers: headers, params: params).json
169
298
  end
170
299
  alias get_characters_character_id_medals get_character_medals
171
300
 
301
+ # Return a list of medals the character has.
302
+ #
303
+ # This endpoint is cached for up to 3600 seconds.
304
+ #
305
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
306
+ #
307
+ # @esi_scope esi-characters.read_medals.v1
308
+ #
309
+ # @esi_version dev
310
+ # @esi_version v2
311
+ #
312
+ # @param character_id [Integer] An EVE character ID
313
+ # @param params [Hash] Additional query string parameters
314
+ # @param headers [Hash] Additional headers
315
+ #
316
+ # @raise [ESI::Errors::BadRequestError] Bad request
317
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
318
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
319
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
320
+ # @raise [ESI::Errors::InternalServerError] Internal server error
321
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
322
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
323
+ #
324
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_medals
325
+ def get_character_medals_raw(character_id:, headers: {}, params: {})
326
+ get("/characters/#{character_id}/medals/", headers: headers, params: params)
327
+ end
328
+
172
329
  # Return notifications about having been added to someone's contact list.
173
330
  #
174
331
  # This endpoint is cached for up to 600 seconds.
@@ -194,10 +351,38 @@ module ESI
194
351
  #
195
352
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications_contacts
196
353
  def get_character_notification_contacts(character_id:, headers: {}, params: {})
197
- get("/characters/#{character_id}/notifications/contacts/", headers: headers, params: params).json
354
+ get_character_notification_contacts_raw(character_id: character_id, headers: headers, params: params).json
198
355
  end
199
356
  alias get_characters_character_id_notifications_contacts get_character_notification_contacts
200
357
 
358
+ # Return notifications about having been added to someone's contact list.
359
+ #
360
+ # This endpoint is cached for up to 600 seconds.
361
+ #
362
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
363
+ #
364
+ # @esi_scope esi-characters.read_notifications.v1
365
+ #
366
+ # @esi_version dev
367
+ # @esi_version v2
368
+ #
369
+ # @param character_id [Integer] An EVE character ID
370
+ # @param params [Hash] Additional query string parameters
371
+ # @param headers [Hash] Additional headers
372
+ #
373
+ # @raise [ESI::Errors::BadRequestError] Bad request
374
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
375
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
376
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
377
+ # @raise [ESI::Errors::InternalServerError] Internal server error
378
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
379
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
380
+ #
381
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications_contacts
382
+ def get_character_notification_contacts_raw(character_id:, headers: {}, params: {})
383
+ get("/characters/#{character_id}/notifications/contacts/", headers: headers, params: params)
384
+ end
385
+
201
386
  # Return character notifications.
202
387
  #
203
388
  # This endpoint is cached for up to 600 seconds.
@@ -224,10 +409,39 @@ module ESI
224
409
  #
225
410
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications
226
411
  def get_character_notifications(character_id:, headers: {}, params: {})
227
- get("/characters/#{character_id}/notifications/", headers: headers, params: params).json
412
+ get_character_notifications_raw(character_id: character_id, headers: headers, params: params).json
228
413
  end
229
414
  alias get_characters_character_id_notifications get_character_notifications
230
415
 
416
+ # Return character notifications.
417
+ #
418
+ # This endpoint is cached for up to 600 seconds.
419
+ #
420
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
421
+ #
422
+ # @esi_scope esi-characters.read_notifications.v1
423
+ #
424
+ # @esi_version dev
425
+ # @esi_version v5
426
+ # @esi_version v6
427
+ #
428
+ # @param character_id [Integer] An EVE character ID
429
+ # @param params [Hash] Additional query string parameters
430
+ # @param headers [Hash] Additional headers
431
+ #
432
+ # @raise [ESI::Errors::BadRequestError] Bad request
433
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
434
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
435
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
436
+ # @raise [ESI::Errors::InternalServerError] Internal server error
437
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
438
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
439
+ #
440
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications
441
+ def get_character_notifications_raw(character_id:, headers: {}, params: {})
442
+ get("/characters/#{character_id}/notifications/", headers: headers, params: params)
443
+ end
444
+
231
445
  # Get portrait urls for a character.
232
446
  #
233
447
  # @esi_version dev
@@ -247,10 +461,32 @@ module ESI
247
461
  #
248
462
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_portrait
249
463
  def get_character_portrait(character_id:, headers: {}, params: {})
250
- get("/characters/#{character_id}/portrait/", headers: headers, params: params).json
464
+ get_character_portrait_raw(character_id: character_id, headers: headers, params: params).json
251
465
  end
252
466
  alias get_characters_character_id_portrait get_character_portrait
253
467
 
468
+ # Get portrait urls for a character.
469
+ #
470
+ # @esi_version dev
471
+ # @esi_version v2
472
+ # @esi_version v3
473
+ #
474
+ # @param character_id [Integer] An EVE character ID
475
+ # @param params [Hash] Additional query string parameters
476
+ # @param headers [Hash] Additional headers
477
+ #
478
+ # @raise [ESI::Errors::BadRequestError] Bad request
479
+ # @raise [ESI::Errors::NotFoundError] No image server for this datasource
480
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
481
+ # @raise [ESI::Errors::InternalServerError] Internal server error
482
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
483
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
484
+ #
485
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_portrait
486
+ def get_character_portrait_raw(character_id:, headers: {}, params: {})
487
+ get("/characters/#{character_id}/portrait/", headers: headers, params: params)
488
+ end
489
+
254
490
  # Returns a character's corporation roles.
255
491
  #
256
492
  # This endpoint is cached for up to 3600 seconds.
@@ -276,10 +512,38 @@ module ESI
276
512
  #
277
513
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_roles
278
514
  def get_character_roles(character_id:, headers: {}, params: {})
279
- get("/characters/#{character_id}/roles/", headers: headers, params: params).json
515
+ get_character_roles_raw(character_id: character_id, headers: headers, params: params).json
280
516
  end
281
517
  alias get_characters_character_id_roles get_character_roles
282
518
 
519
+ # Returns a character's corporation roles.
520
+ #
521
+ # This endpoint is cached for up to 3600 seconds.
522
+ #
523
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
524
+ #
525
+ # @esi_scope esi-characters.read_corporation_roles.v1
526
+ #
527
+ # @esi_version dev
528
+ # @esi_version v3
529
+ #
530
+ # @param character_id [Integer] An EVE character ID
531
+ # @param params [Hash] Additional query string parameters
532
+ # @param headers [Hash] Additional headers
533
+ #
534
+ # @raise [ESI::Errors::BadRequestError] Bad request
535
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
536
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
537
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
538
+ # @raise [ESI::Errors::InternalServerError] Internal server error
539
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
540
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
541
+ #
542
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_roles
543
+ def get_character_roles_raw(character_id:, headers: {}, params: {})
544
+ get("/characters/#{character_id}/roles/", headers: headers, params: params)
545
+ end
546
+
283
547
  # Return character standings from agents, NPC corporations, and factions.
284
548
  #
285
549
  # This endpoint is cached for up to 3600 seconds.
@@ -305,10 +569,38 @@ module ESI
305
569
  #
306
570
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_standings
307
571
  def get_character_standings(character_id:, headers: {}, params: {})
308
- get("/characters/#{character_id}/standings/", headers: headers, params: params).json
572
+ get_character_standings_raw(character_id: character_id, headers: headers, params: params).json
309
573
  end
310
574
  alias get_characters_character_id_standings get_character_standings
311
575
 
576
+ # Return character standings from agents, NPC corporations, and factions.
577
+ #
578
+ # This endpoint is cached for up to 3600 seconds.
579
+ #
580
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
581
+ #
582
+ # @esi_scope esi-characters.read_standings.v1
583
+ #
584
+ # @esi_version dev
585
+ # @esi_version v2
586
+ #
587
+ # @param character_id [Integer] An EVE character ID
588
+ # @param params [Hash] Additional query string parameters
589
+ # @param headers [Hash] Additional headers
590
+ #
591
+ # @raise [ESI::Errors::BadRequestError] Bad request
592
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
593
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
594
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
595
+ # @raise [ESI::Errors::InternalServerError] Internal server error
596
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
597
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
598
+ #
599
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_standings
600
+ def get_character_standings_raw(character_id:, headers: {}, params: {})
601
+ get("/characters/#{character_id}/standings/", headers: headers, params: params)
602
+ end
603
+
312
604
  # Returns a character's titles.
313
605
  #
314
606
  # This endpoint is cached for up to 3600 seconds.
@@ -334,10 +626,38 @@ module ESI
334
626
  #
335
627
  # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_titles
336
628
  def get_character_titles(character_id:, headers: {}, params: {})
337
- get("/characters/#{character_id}/titles/", headers: headers, params: params).json
629
+ get_character_titles_raw(character_id: character_id, headers: headers, params: params).json
338
630
  end
339
631
  alias get_characters_character_id_titles get_character_titles
340
632
 
633
+ # Returns a character's titles.
634
+ #
635
+ # This endpoint is cached for up to 3600 seconds.
636
+ #
637
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
638
+ #
639
+ # @esi_scope esi-characters.read_titles.v1
640
+ #
641
+ # @esi_version dev
642
+ # @esi_version v2
643
+ #
644
+ # @param character_id [Integer] An EVE character ID
645
+ # @param params [Hash] Additional query string parameters
646
+ # @param headers [Hash] Additional headers
647
+ #
648
+ # @raise [ESI::Errors::BadRequestError] Bad request
649
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
650
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
651
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
652
+ # @raise [ESI::Errors::InternalServerError] Internal server error
653
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
654
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
655
+ #
656
+ # @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_titles
657
+ def get_character_titles_raw(character_id:, headers: {}, params: {})
658
+ get("/characters/#{character_id}/titles/", headers: headers, params: params)
659
+ end
660
+
341
661
  # Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost.
342
662
  #
343
663
  # This endpoint requires authorization (see {ESI::Client#authorize}).
@@ -362,10 +682,37 @@ module ESI
362
682
  #
363
683
  # @see https://esi.evetech.net/ui/#/Character/post_characters_character_id_cspa
364
684
  def post_character_cspa(character_id:, characters:, headers: {}, params: {})
365
- post("/characters/#{character_id}/cspa/", headers: headers, params: params, payload: characters).json
685
+ post_character_cspa_raw(character_id: character_id, characters: characters, headers: headers, params: params).json
366
686
  end
367
687
  alias post_characters_character_id_cspa post_character_cspa
368
688
 
689
+ # Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost.
690
+ #
691
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
692
+ #
693
+ # @esi_scope esi-characters.read_contacts.v1
694
+ #
695
+ # @esi_version dev
696
+ # @esi_version v5
697
+ #
698
+ # @param character_id [Integer] An EVE character ID
699
+ # @param characters [Array] The target characters to calculate the charge for
700
+ # @param params [Hash] Additional query string parameters
701
+ # @param headers [Hash] Additional headers
702
+ #
703
+ # @raise [ESI::Errors::BadRequestError] Bad request
704
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
705
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
706
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
707
+ # @raise [ESI::Errors::InternalServerError] Internal server error
708
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
709
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
710
+ #
711
+ # @see https://esi.evetech.net/ui/#/Character/post_characters_character_id_cspa
712
+ def post_character_cspa_raw(character_id:, characters:, headers: {}, params: {})
713
+ post("/characters/#{character_id}/cspa/", headers: headers, params: params, payload: characters)
714
+ end
715
+
369
716
  # Bulk lookup of character IDs to corporation, alliance and faction.
370
717
  #
371
718
  # This endpoint is cached for up to 3600 seconds.
@@ -385,7 +732,29 @@ module ESI
385
732
  #
386
733
  # @see https://esi.evetech.net/ui/#/Character/post_characters_affiliation
387
734
  def post_characters_affiliation(characters:, headers: {}, params: {})
388
- post("/characters/affiliation/", headers: headers, params: params, payload: characters).json
735
+ post_characters_affiliation_raw(characters: characters, headers: headers, params: params).json
736
+ end
737
+
738
+ # Bulk lookup of character IDs to corporation, alliance and faction.
739
+ #
740
+ # This endpoint is cached for up to 3600 seconds.
741
+ #
742
+ # @esi_version dev
743
+ # @esi_version v2
744
+ #
745
+ # @param characters [Array] The character IDs to fetch affiliations for. All characters must exist, or none will be returned
746
+ # @param params [Hash] Additional query string parameters
747
+ # @param headers [Hash] Additional headers
748
+ #
749
+ # @raise [ESI::Errors::BadRequestError] Bad request
750
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
751
+ # @raise [ESI::Errors::InternalServerError] Internal server error
752
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
753
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
754
+ #
755
+ # @see https://esi.evetech.net/ui/#/Character/post_characters_affiliation
756
+ def post_characters_affiliation_raw(characters:, headers: {}, params: {})
757
+ post("/characters/affiliation/", headers: headers, params: params, payload: characters)
389
758
  end
390
759
  end
391
760
  end
@@ -30,10 +30,39 @@ module ESI
30
30
  #
31
31
  # @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_clones
32
32
  def get_character_clones(character_id:, headers: {}, params: {})
33
- get("/characters/#{character_id}/clones/", headers: headers, params: params).json
33
+ get_character_clones_raw(character_id: character_id, headers: headers, params: params).json
34
34
  end
35
35
  alias get_characters_character_id_clones get_character_clones
36
36
 
37
+ # A list of the character's clones.
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_clones.v1
44
+ #
45
+ # @esi_version dev
46
+ # @esi_version v3
47
+ # @esi_version v4
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/#/Clones/get_characters_character_id_clones
62
+ def get_character_clones_raw(character_id:, headers: {}, params: {})
63
+ get("/characters/#{character_id}/clones/", headers: headers, params: params)
64
+ end
65
+
37
66
  # Return implants on the active clone of a character.
38
67
  #
39
68
  # This endpoint is cached for up to 120 seconds.
@@ -61,9 +90,39 @@ module ESI
61
90
  #
62
91
  # @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_implants
63
92
  def get_character_implants(character_id:, headers: {}, params: {})
64
- get("/characters/#{character_id}/implants/", headers: headers, params: params).json
93
+ get_character_implants_raw(character_id: character_id, headers: headers, params: params).json
65
94
  end
66
95
  alias get_characters_character_id_implants get_character_implants
96
+
97
+ # Return implants on the active clone of a character.
98
+ #
99
+ # This endpoint is cached for up to 120 seconds.
100
+ #
101
+ # This endpoint requires authorization (see {ESI::Client#authorize}).
102
+ #
103
+ # @esi_scope esi-clones.read_implants.v1
104
+ #
105
+ # @esi_version dev
106
+ # @esi_version legacy
107
+ # @esi_version v1
108
+ # @esi_version v2
109
+ #
110
+ # @param character_id [Integer] An EVE character ID
111
+ # @param params [Hash] Additional query string parameters
112
+ # @param headers [Hash] Additional headers
113
+ #
114
+ # @raise [ESI::Errors::BadRequestError] Bad request
115
+ # @raise [ESI::Errors::UnauthorizedError] Unauthorized
116
+ # @raise [ESI::Errors::ForbiddenError] Forbidden
117
+ # @raise [ESI::Errors::ErrorLimitedError] Error limited
118
+ # @raise [ESI::Errors::InternalServerError] Internal server error
119
+ # @raise [ESI::Errors::ServiceUnavailableError] Service unavailable
120
+ # @raise [ESI::Errors::GatewayTimeoutError] Gateway timeout
121
+ #
122
+ # @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_implants
123
+ def get_character_implants_raw(character_id:, headers: {}, params: {})
124
+ get("/characters/#{character_id}/implants/", headers: headers, params: params)
125
+ end
67
126
  end
68
127
  end
69
128
  end