esi-sdk 2.1.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -8
- data/.yardext.rb +5 -5
- data/CHANGELOG.md +21 -0
- data/Gemfile +15 -15
- data/Gemfile.lock +10 -6
- data/Rakefile +105 -138
- data/bin/console +3 -3
- data/esi-sdk.gemspec +18 -17
- data/exe/esi-sdk +1 -1
- data/lib/esi/client/alliance.rb +5 -5
- data/lib/esi/client/assets.rb +4 -4
- data/lib/esi/client/calendar.rb +5 -5
- data/lib/esi/client/character.rb +16 -14
- data/lib/esi/client/clones.rb +2 -2
- data/lib/esi/client/contacts.rb +9 -9
- data/lib/esi/client/contracts.rb +3 -3
- data/lib/esi/client/corporation.rb +15 -15
- data/lib/esi/client/dogma.rb +7 -7
- data/lib/esi/client/faction_warfare.rb +14 -14
- data/lib/esi/client/fittings.rb +3 -3
- data/lib/esi/client/fleets.rb +14 -14
- data/lib/esi/client/incursions.rb +2 -2
- data/lib/esi/client/industry.rb +8 -8
- data/lib/esi/client/insurance.rb +2 -2
- data/lib/esi/client/killmails.rb +1 -1
- data/lib/esi/client/location.rb +3 -3
- data/lib/esi/client/loyalty.rb +2 -2
- data/lib/esi/client/mail.rb +8 -8
- data/lib/esi/client/market.rb +12 -12
- data/lib/esi/client/opportunities.rb +7 -7
- data/lib/esi/client/planetary_interaction.rb +3 -3
- data/lib/esi/client/routes.rb +4 -4
- data/lib/esi/client/search.rb +5 -5
- data/lib/esi/client/skills.rb +3 -3
- data/lib/esi/client/sovereignty.rb +6 -6
- data/lib/esi/client/status.rb +2 -2
- data/lib/esi/client/universe.rb +45 -45
- data/lib/esi/client/user_interface.rb +14 -14
- data/lib/esi/client/wallet.rb +6 -6
- data/lib/esi/client/wars.rb +4 -4
- data/lib/esi/client.rb +116 -87
- data/lib/esi/version.rb +1 -1
- data/lib/esi-sdk.rb +2 -2
- metadata +22 -8
data/esi-sdk.gemspec
CHANGED
@@ -1,31 +1,32 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative
|
3
|
+
require_relative './lib/esi/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'esi-sdk'
|
7
7
|
spec.version = ESI::VERSION
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
8
|
+
spec.authors = ['Bokobo Shahni']
|
9
|
+
spec.email = ['shahni@bokobo.space']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
16
|
-
spec.required_ruby_version =
|
11
|
+
spec.summary = 'API client for the EVE Swagger Interface (ESI)'
|
12
|
+
spec.description = 'ESI SDK is a Ruby API client for the EVE Swagger Interface (ESI), '\
|
13
|
+
'the official API for the EVE Online MMORPG.'
|
14
|
+
spec.homepage = 'https://github.com/bokoboshahni/esi-sdk'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
spec.required_ruby_version = '>= 3.0.0'
|
17
17
|
|
18
|
-
spec.metadata[
|
19
|
-
spec.metadata[
|
20
|
-
spec.metadata[
|
18
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
19
|
+
spec.metadata['source_code_uri'] = 'https://github.com/bokoboshahni/esi-sdk'
|
20
|
+
spec.metadata['changelog_uri'] = 'https://github.com/bokoboshahni/blob/main/CHANGELOG.md'
|
21
21
|
|
22
22
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
23
23
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
24
24
|
end
|
25
|
-
spec.bindir =
|
25
|
+
spec.bindir = 'exe'
|
26
26
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
27
|
-
spec.require_paths = [
|
27
|
+
spec.require_paths = ['lib']
|
28
28
|
|
29
|
-
spec.add_dependency
|
30
|
-
spec.add_dependency
|
29
|
+
spec.add_dependency 'oj', '~> 3.13'
|
30
|
+
spec.add_dependency 'retriable', '~> 3.1'
|
31
|
+
spec.add_dependency 'typhoeus', '~> 1.4'
|
31
32
|
end
|
data/exe/esi-sdk
CHANGED
data/lib/esi/client/alliance.rb
CHANGED
@@ -26,7 +26,7 @@ module ESI
|
|
26
26
|
#
|
27
27
|
# @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id
|
28
28
|
def get_alliance(alliance_id:, headers: {}, params: {})
|
29
|
-
get_alliance_raw(alliance_id: alliance_id, headers: headers, params: params)
|
29
|
+
parse_response(get_alliance_raw(alliance_id: alliance_id, headers: headers, params: params))
|
30
30
|
end
|
31
31
|
alias get_alliances_alliance_id get_alliance
|
32
32
|
|
@@ -76,7 +76,7 @@ module ESI
|
|
76
76
|
#
|
77
77
|
# @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id_corporations
|
78
78
|
def get_alliance_corporations(alliance_id:, headers: {}, params: {})
|
79
|
-
get_alliance_corporations_raw(alliance_id: alliance_id, headers: headers, params: params)
|
79
|
+
parse_response(get_alliance_corporations_raw(alliance_id: alliance_id, headers: headers, params: params))
|
80
80
|
end
|
81
81
|
alias get_alliances_alliance_id_corporations get_alliance_corporations
|
82
82
|
|
@@ -122,7 +122,7 @@ module ESI
|
|
122
122
|
#
|
123
123
|
# @see https://esi.evetech.net/ui/#/Alliance/get_alliances_alliance_id_icons
|
124
124
|
def get_alliance_icons(alliance_id:, headers: {}, params: {})
|
125
|
-
get_alliance_icons_raw(alliance_id: alliance_id, headers: headers, params: params)
|
125
|
+
parse_response(get_alliance_icons_raw(alliance_id: alliance_id, headers: headers, params: params))
|
126
126
|
end
|
127
127
|
alias get_alliances_alliance_id_icons get_alliance_icons
|
128
128
|
|
@@ -167,7 +167,7 @@ module ESI
|
|
167
167
|
#
|
168
168
|
# @see https://esi.evetech.net/ui/#/Alliance/get_alliances
|
169
169
|
def get_alliances(headers: {}, params: {})
|
170
|
-
get_alliances_raw(headers: headers, params: params)
|
170
|
+
parse_response(get_alliances_raw(headers: headers, params: params))
|
171
171
|
end
|
172
172
|
|
173
173
|
# List all active player alliances.
|
@@ -190,7 +190,7 @@ module ESI
|
|
190
190
|
#
|
191
191
|
# @see https://esi.evetech.net/ui/#/Alliance/get_alliances
|
192
192
|
def get_alliances_raw(headers: {}, params: {})
|
193
|
-
get(
|
193
|
+
get('/alliances/', headers: headers, params: params)
|
194
194
|
end
|
195
195
|
end
|
196
196
|
end
|
data/lib/esi/client/assets.rb
CHANGED
@@ -144,7 +144,7 @@ module ESI
|
|
144
144
|
#
|
145
145
|
# @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_locations
|
146
146
|
def post_character_asset_locations(character_id:, item_ids:, headers: {}, params: {})
|
147
|
-
post_character_asset_locations_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params)
|
147
|
+
parse_response(post_character_asset_locations_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params))
|
148
148
|
end
|
149
149
|
alias post_characters_character_id_assets_locations post_character_asset_locations
|
150
150
|
|
@@ -200,7 +200,7 @@ module ESI
|
|
200
200
|
#
|
201
201
|
# @see https://esi.evetech.net/ui/#/Assets/post_characters_character_id_assets_names
|
202
202
|
def post_character_asset_names(character_id:, item_ids:, headers: {}, params: {})
|
203
|
-
post_character_asset_names_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params)
|
203
|
+
parse_response(post_character_asset_names_raw(character_id: character_id, item_ids: item_ids, headers: headers, params: params))
|
204
204
|
end
|
205
205
|
alias post_characters_character_id_assets_names post_character_asset_names
|
206
206
|
|
@@ -257,7 +257,7 @@ module ESI
|
|
257
257
|
#
|
258
258
|
# @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_locations
|
259
259
|
def post_corporation_asset_locations(corporation_id:, item_ids:, headers: {}, params: {})
|
260
|
-
post_corporation_asset_locations_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params)
|
260
|
+
parse_response(post_corporation_asset_locations_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params))
|
261
261
|
end
|
262
262
|
alias post_corporations_corporation_id_assets_locations post_corporation_asset_locations
|
263
263
|
|
@@ -315,7 +315,7 @@ module ESI
|
|
315
315
|
#
|
316
316
|
# @see https://esi.evetech.net/ui/#/Assets/post_corporations_corporation_id_assets_names
|
317
317
|
def post_corporation_asset_names(corporation_id:, item_ids:, headers: {}, params: {})
|
318
|
-
post_corporation_asset_names_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params)
|
318
|
+
parse_response(post_corporation_asset_names_raw(corporation_id: corporation_id, item_ids: item_ids, headers: headers, params: params))
|
319
319
|
end
|
320
320
|
alias post_corporations_corporation_id_assets_names post_corporation_asset_names
|
321
321
|
|
data/lib/esi/client/calendar.rb
CHANGED
@@ -32,7 +32,7 @@ module ESI
|
|
32
32
|
#
|
33
33
|
# @see https://esi.evetech.net/ui/#/Calendar/get_characters_character_id_calendar
|
34
34
|
def get_character_calendar(character_id:, from_event: nil, headers: {}, params: {})
|
35
|
-
get_character_calendar_raw(character_id: character_id, from_event: from_event, headers: headers, params: params)
|
35
|
+
parse_response(get_character_calendar_raw(character_id: character_id, from_event: from_event, headers: headers, params: params))
|
36
36
|
end
|
37
37
|
alias get_characters_character_id_calendar get_character_calendar
|
38
38
|
|
@@ -64,7 +64,7 @@ module ESI
|
|
64
64
|
#
|
65
65
|
# @see https://esi.evetech.net/ui/#/Calendar/get_characters_character_id_calendar
|
66
66
|
def get_character_calendar_raw(character_id:, from_event: nil, headers: {}, params: {})
|
67
|
-
params.merge!(
|
67
|
+
params.merge!('from_event' => from_event)
|
68
68
|
get("/characters/#{character_id}/calendar/", headers: headers, params: params)
|
69
69
|
end
|
70
70
|
|
@@ -97,7 +97,7 @@ module ESI
|
|
97
97
|
#
|
98
98
|
# @see https://esi.evetech.net/ui/#/Calendar/get_characters_character_id_calendar_event_id
|
99
99
|
def get_character_calendar_event(character_id:, event_id:, headers: {}, params: {})
|
100
|
-
get_character_calendar_event_raw(character_id: character_id, event_id: event_id, headers: headers, params: params)
|
100
|
+
parse_response(get_character_calendar_event_raw(character_id: character_id, event_id: event_id, headers: headers, params: params))
|
101
101
|
end
|
102
102
|
alias get_characters_character_id_calendar_event_id get_character_calendar_event
|
103
103
|
|
@@ -162,7 +162,7 @@ module ESI
|
|
162
162
|
#
|
163
163
|
# @see https://esi.evetech.net/ui/#/Calendar/get_characters_character_id_calendar_event_id_attendees
|
164
164
|
def get_character_calendar_event_attendees(character_id:, event_id:, headers: {}, params: {})
|
165
|
-
get_character_calendar_event_attendees_raw(character_id: character_id, event_id: event_id, headers: headers, params: params)
|
165
|
+
parse_response(get_character_calendar_event_attendees_raw(character_id: character_id, event_id: event_id, headers: headers, params: params))
|
166
166
|
end
|
167
167
|
alias get_characters_character_id_calendar_event_id_attendees get_character_calendar_event_attendees
|
168
168
|
|
@@ -227,7 +227,7 @@ module ESI
|
|
227
227
|
#
|
228
228
|
# @see https://esi.evetech.net/ui/#/Calendar/put_characters_character_id_calendar_event_id
|
229
229
|
def put_character_calendar_event(character_id:, event_id:, response:, headers: {}, params: {})
|
230
|
-
put_character_calendar_event_raw(character_id: character_id, event_id: event_id, response: response, headers: headers, params: params)
|
230
|
+
parse_response(put_character_calendar_event_raw(character_id: character_id, event_id: event_id, response: response, headers: headers, params: params))
|
231
231
|
end
|
232
232
|
alias put_characters_character_id_calendar_event_id put_character_calendar_event
|
233
233
|
|
data/lib/esi/client/character.rb
CHANGED
@@ -9,6 +9,7 @@ module ESI
|
|
9
9
|
# This endpoint is cached for up to 86400 seconds.
|
10
10
|
#
|
11
11
|
# @esi_version dev
|
12
|
+
# @esi_version legacy
|
12
13
|
# @esi_version v5
|
13
14
|
#
|
14
15
|
# @param character_id [Integer] An EVE character ID
|
@@ -24,7 +25,7 @@ module ESI
|
|
24
25
|
#
|
25
26
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id
|
26
27
|
def get_character(character_id:, headers: {}, params: {})
|
27
|
-
get_character_raw(character_id: character_id, headers: headers, params: params)
|
28
|
+
parse_response(get_character_raw(character_id: character_id, headers: headers, params: params))
|
28
29
|
end
|
29
30
|
alias get_characters_character_id get_character
|
30
31
|
|
@@ -33,6 +34,7 @@ module ESI
|
|
33
34
|
# This endpoint is cached for up to 86400 seconds.
|
34
35
|
#
|
35
36
|
# @esi_version dev
|
37
|
+
# @esi_version legacy
|
36
38
|
# @esi_version v5
|
37
39
|
#
|
38
40
|
# @param character_id [Integer] An EVE character ID
|
@@ -76,7 +78,7 @@ module ESI
|
|
76
78
|
#
|
77
79
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_agents_research
|
78
80
|
def get_character_agents_research(character_id:, headers: {}, params: {})
|
79
|
-
get_character_agents_research_raw(character_id: character_id, headers: headers, params: params)
|
81
|
+
parse_response(get_character_agents_research_raw(character_id: character_id, headers: headers, params: params))
|
80
82
|
end
|
81
83
|
alias get_characters_character_id_agents_research get_character_agents_research
|
82
84
|
|
@@ -184,7 +186,7 @@ module ESI
|
|
184
186
|
#
|
185
187
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_corporationhistory
|
186
188
|
def get_character_corporationhistory(character_id:, headers: {}, params: {})
|
187
|
-
get_character_corporationhistory_raw(character_id: character_id, headers: headers, params: params)
|
189
|
+
parse_response(get_character_corporationhistory_raw(character_id: character_id, headers: headers, params: params))
|
188
190
|
end
|
189
191
|
alias get_character_corporation_history get_character_corporationhistory
|
190
192
|
alias get_characters_character_id_corporationhistory get_character_corporationhistory
|
@@ -236,7 +238,7 @@ module ESI
|
|
236
238
|
#
|
237
239
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_fatigue
|
238
240
|
def get_character_fatigue(character_id:, headers: {}, params: {})
|
239
|
-
get_character_fatigue_raw(character_id: character_id, headers: headers, params: params)
|
241
|
+
parse_response(get_character_fatigue_raw(character_id: character_id, headers: headers, params: params))
|
240
242
|
end
|
241
243
|
alias get_characters_character_id_fatigue get_character_fatigue
|
242
244
|
|
@@ -293,7 +295,7 @@ module ESI
|
|
293
295
|
#
|
294
296
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_medals
|
295
297
|
def get_character_medals(character_id:, headers: {}, params: {})
|
296
|
-
get_character_medals_raw(character_id: character_id, headers: headers, params: params)
|
298
|
+
parse_response(get_character_medals_raw(character_id: character_id, headers: headers, params: params))
|
297
299
|
end
|
298
300
|
alias get_characters_character_id_medals get_character_medals
|
299
301
|
|
@@ -350,7 +352,7 @@ module ESI
|
|
350
352
|
#
|
351
353
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications_contacts
|
352
354
|
def get_character_notification_contacts(character_id:, headers: {}, params: {})
|
353
|
-
get_character_notification_contacts_raw(character_id: character_id, headers: headers, params: params)
|
355
|
+
parse_response(get_character_notification_contacts_raw(character_id: character_id, headers: headers, params: params))
|
354
356
|
end
|
355
357
|
alias get_characters_character_id_notifications_contacts get_character_notification_contacts
|
356
358
|
|
@@ -408,7 +410,7 @@ module ESI
|
|
408
410
|
#
|
409
411
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_notifications
|
410
412
|
def get_character_notifications(character_id:, headers: {}, params: {})
|
411
|
-
get_character_notifications_raw(character_id: character_id, headers: headers, params: params)
|
413
|
+
parse_response(get_character_notifications_raw(character_id: character_id, headers: headers, params: params))
|
412
414
|
end
|
413
415
|
alias get_characters_character_id_notifications get_character_notifications
|
414
416
|
|
@@ -460,7 +462,7 @@ module ESI
|
|
460
462
|
#
|
461
463
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_portrait
|
462
464
|
def get_character_portrait(character_id:, headers: {}, params: {})
|
463
|
-
get_character_portrait_raw(character_id: character_id, headers: headers, params: params)
|
465
|
+
parse_response(get_character_portrait_raw(character_id: character_id, headers: headers, params: params))
|
464
466
|
end
|
465
467
|
alias get_characters_character_id_portrait get_character_portrait
|
466
468
|
|
@@ -511,7 +513,7 @@ module ESI
|
|
511
513
|
#
|
512
514
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_roles
|
513
515
|
def get_character_roles(character_id:, headers: {}, params: {})
|
514
|
-
get_character_roles_raw(character_id: character_id, headers: headers, params: params)
|
516
|
+
parse_response(get_character_roles_raw(character_id: character_id, headers: headers, params: params))
|
515
517
|
end
|
516
518
|
alias get_characters_character_id_roles get_character_roles
|
517
519
|
|
@@ -568,7 +570,7 @@ module ESI
|
|
568
570
|
#
|
569
571
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_standings
|
570
572
|
def get_character_standings(character_id:, headers: {}, params: {})
|
571
|
-
get_character_standings_raw(character_id: character_id, headers: headers, params: params)
|
573
|
+
parse_response(get_character_standings_raw(character_id: character_id, headers: headers, params: params))
|
572
574
|
end
|
573
575
|
alias get_characters_character_id_standings get_character_standings
|
574
576
|
|
@@ -625,7 +627,7 @@ module ESI
|
|
625
627
|
#
|
626
628
|
# @see https://esi.evetech.net/ui/#/Character/get_characters_character_id_titles
|
627
629
|
def get_character_titles(character_id:, headers: {}, params: {})
|
628
|
-
get_character_titles_raw(character_id: character_id, headers: headers, params: params)
|
630
|
+
parse_response(get_character_titles_raw(character_id: character_id, headers: headers, params: params))
|
629
631
|
end
|
630
632
|
alias get_characters_character_id_titles get_character_titles
|
631
633
|
|
@@ -681,7 +683,7 @@ module ESI
|
|
681
683
|
#
|
682
684
|
# @see https://esi.evetech.net/ui/#/Character/post_characters_character_id_cspa
|
683
685
|
def post_character_cspa(character_id:, characters:, headers: {}, params: {})
|
684
|
-
post_character_cspa_raw(character_id: character_id, characters: characters, headers: headers, params: params)
|
686
|
+
parse_response(post_character_cspa_raw(character_id: character_id, characters: characters, headers: headers, params: params))
|
685
687
|
end
|
686
688
|
alias post_characters_character_id_cspa post_character_cspa
|
687
689
|
|
@@ -731,7 +733,7 @@ module ESI
|
|
731
733
|
#
|
732
734
|
# @see https://esi.evetech.net/ui/#/Character/post_characters_affiliation
|
733
735
|
def post_characters_affiliation(characters:, headers: {}, params: {})
|
734
|
-
post_characters_affiliation_raw(characters: characters, headers: headers, params: params)
|
736
|
+
parse_response(post_characters_affiliation_raw(characters: characters, headers: headers, params: params))
|
735
737
|
end
|
736
738
|
|
737
739
|
# Bulk lookup of character IDs to corporation, alliance and faction.
|
@@ -753,7 +755,7 @@ module ESI
|
|
753
755
|
#
|
754
756
|
# @see https://esi.evetech.net/ui/#/Character/post_characters_affiliation
|
755
757
|
def post_characters_affiliation_raw(characters:, headers: {}, params: {})
|
756
|
-
post(
|
758
|
+
post('/characters/affiliation/', headers: headers, params: params, payload: characters)
|
757
759
|
end
|
758
760
|
end
|
759
761
|
end
|
data/lib/esi/client/clones.rb
CHANGED
@@ -30,7 +30,7 @@ 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_character_clones_raw(character_id: character_id, headers: headers, params: params)
|
33
|
+
parse_response(get_character_clones_raw(character_id: character_id, headers: headers, params: params))
|
34
34
|
end
|
35
35
|
alias get_characters_character_id_clones get_character_clones
|
36
36
|
|
@@ -90,7 +90,7 @@ module ESI
|
|
90
90
|
#
|
91
91
|
# @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_implants
|
92
92
|
def get_character_implants(character_id:, headers: {}, params: {})
|
93
|
-
get_character_implants_raw(character_id: character_id, headers: headers, params: params)
|
93
|
+
parse_response(get_character_implants_raw(character_id: character_id, headers: headers, params: params))
|
94
94
|
end
|
95
95
|
alias get_characters_character_id_implants get_character_implants
|
96
96
|
|
data/lib/esi/client/contacts.rb
CHANGED
@@ -28,7 +28,7 @@ module ESI
|
|
28
28
|
#
|
29
29
|
# @see https://esi.evetech.net/ui/#/Contacts/delete_characters_character_id_contacts
|
30
30
|
def delete_character_contacts(character_id:, contact_ids:, headers: {}, params: {})
|
31
|
-
delete_character_contacts_raw(character_id: character_id, contact_ids: contact_ids, headers: headers, params: params)
|
31
|
+
parse_response(delete_character_contacts_raw(character_id: character_id, contact_ids: contact_ids, headers: headers, params: params))
|
32
32
|
end
|
33
33
|
alias delete_characters_character_id_contacts delete_character_contacts
|
34
34
|
|
@@ -56,7 +56,7 @@ module ESI
|
|
56
56
|
#
|
57
57
|
# @see https://esi.evetech.net/ui/#/Contacts/delete_characters_character_id_contacts
|
58
58
|
def delete_character_contacts_raw(character_id:, contact_ids:, headers: {}, params: {})
|
59
|
-
params.merge!(
|
59
|
+
params.merge!('contact_ids' => contact_ids)
|
60
60
|
delete("/characters/#{character_id}/contacts/", headers: headers, params: params)
|
61
61
|
end
|
62
62
|
|
@@ -86,7 +86,7 @@ module ESI
|
|
86
86
|
#
|
87
87
|
# @see https://esi.evetech.net/ui/#/Contacts/get_alliances_alliance_id_contacts_labels
|
88
88
|
def get_alliance_contact_labels(alliance_id:, headers: {}, params: {})
|
89
|
-
get_alliance_contact_labels_raw(alliance_id: alliance_id, headers: headers, params: params)
|
89
|
+
parse_response(get_alliance_contact_labels_raw(alliance_id: alliance_id, headers: headers, params: params))
|
90
90
|
end
|
91
91
|
alias get_alliances_alliance_id_contacts_labels get_alliance_contact_labels
|
92
92
|
|
@@ -202,7 +202,7 @@ module ESI
|
|
202
202
|
#
|
203
203
|
# @see https://esi.evetech.net/ui/#/Contacts/get_characters_character_id_contacts_labels
|
204
204
|
def get_character_contact_labels(character_id:, headers: {}, params: {})
|
205
|
-
get_character_contact_labels_raw(character_id: character_id, headers: headers, params: params)
|
205
|
+
parse_response(get_character_contact_labels_raw(character_id: character_id, headers: headers, params: params))
|
206
206
|
end
|
207
207
|
alias get_characters_character_id_contacts_labels get_character_contact_labels
|
208
208
|
|
@@ -318,7 +318,7 @@ module ESI
|
|
318
318
|
#
|
319
319
|
# @see https://esi.evetech.net/ui/#/Contacts/get_corporations_corporation_id_contacts_labels
|
320
320
|
def get_corporation_contact_labels(corporation_id:, headers: {}, params: {})
|
321
|
-
get_corporation_contact_labels_raw(corporation_id: corporation_id, headers: headers, params: params)
|
321
|
+
parse_response(get_corporation_contact_labels_raw(corporation_id: corporation_id, headers: headers, params: params))
|
322
322
|
end
|
323
323
|
alias get_corporations_corporation_id_contacts_labels get_corporation_contact_labels
|
324
324
|
|
@@ -436,7 +436,7 @@ module ESI
|
|
436
436
|
#
|
437
437
|
# @see https://esi.evetech.net/ui/#/Contacts/post_characters_character_id_contacts
|
438
438
|
def post_character_contacts(character_id:, contact_ids:, standing:, label_ids: nil, watched: nil, headers: {}, params: {})
|
439
|
-
post_character_contacts_raw(character_id: character_id, contact_ids: contact_ids, label_ids: label_ids, standing: standing, watched: watched, headers: headers, params: params)
|
439
|
+
parse_response(post_character_contacts_raw(character_id: character_id, contact_ids: contact_ids, label_ids: label_ids, standing: standing, watched: watched, headers: headers, params: params))
|
440
440
|
end
|
441
441
|
alias post_characters_character_id_contacts post_character_contacts
|
442
442
|
|
@@ -468,7 +468,7 @@ module ESI
|
|
468
468
|
#
|
469
469
|
# @see https://esi.evetech.net/ui/#/Contacts/post_characters_character_id_contacts
|
470
470
|
def post_character_contacts_raw(character_id:, contact_ids:, standing:, label_ids: nil, watched: nil, headers: {}, params: {})
|
471
|
-
params.merge!(
|
471
|
+
params.merge!('label_ids' => label_ids, 'standing' => standing, 'watched' => watched)
|
472
472
|
post("/characters/#{character_id}/contacts/", headers: headers, params: params, payload: contact_ids)
|
473
473
|
end
|
474
474
|
|
@@ -499,7 +499,7 @@ module ESI
|
|
499
499
|
#
|
500
500
|
# @see https://esi.evetech.net/ui/#/Contacts/put_characters_character_id_contacts
|
501
501
|
def put_character_contacts(character_id:, contact_ids:, standing:, label_ids: nil, watched: nil, headers: {}, params: {})
|
502
|
-
put_character_contacts_raw(character_id: character_id, contact_ids: contact_ids, label_ids: label_ids, standing: standing, watched: watched, headers: headers, params: params)
|
502
|
+
parse_response(put_character_contacts_raw(character_id: character_id, contact_ids: contact_ids, label_ids: label_ids, standing: standing, watched: watched, headers: headers, params: params))
|
503
503
|
end
|
504
504
|
alias put_characters_character_id_contacts put_character_contacts
|
505
505
|
|
@@ -530,7 +530,7 @@ module ESI
|
|
530
530
|
#
|
531
531
|
# @see https://esi.evetech.net/ui/#/Contacts/put_characters_character_id_contacts
|
532
532
|
def put_character_contacts_raw(character_id:, contact_ids:, standing:, label_ids: nil, watched: nil, headers: {}, params: {})
|
533
|
-
params.merge!(
|
533
|
+
params.merge!('label_ids' => label_ids, 'standing' => standing, 'watched' => watched)
|
534
534
|
put("/characters/#{character_id}/contacts/", headers: headers, params: params, payload: contact_ids)
|
535
535
|
end
|
536
536
|
end
|
data/lib/esi/client/contracts.rb
CHANGED
@@ -32,7 +32,7 @@ module ESI
|
|
32
32
|
#
|
33
33
|
# @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_bids
|
34
34
|
def get_character_contract_bids(character_id:, contract_id:, headers: {}, params: {})
|
35
|
-
get_character_contract_bids_raw(character_id: character_id, contract_id: contract_id, headers: headers, params: params)
|
35
|
+
parse_response(get_character_contract_bids_raw(character_id: character_id, contract_id: contract_id, headers: headers, params: params))
|
36
36
|
end
|
37
37
|
alias get_characters_character_id_contracts_contract_id_bids get_character_contract_bids
|
38
38
|
|
@@ -95,7 +95,7 @@ module ESI
|
|
95
95
|
#
|
96
96
|
# @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_items
|
97
97
|
def get_character_contract_items(character_id:, contract_id:, headers: {}, params: {})
|
98
|
-
get_character_contract_items_raw(character_id: character_id, contract_id: contract_id, headers: headers, params: params)
|
98
|
+
parse_response(get_character_contract_items_raw(character_id: character_id, contract_id: contract_id, headers: headers, params: params))
|
99
99
|
end
|
100
100
|
alias get_characters_character_id_contracts_contract_id_items get_character_contract_items
|
101
101
|
|
@@ -432,7 +432,7 @@ module ESI
|
|
432
432
|
#
|
433
433
|
# @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_items
|
434
434
|
def get_corporation_contract_items(contract_id:, corporation_id:, headers: {}, params: {})
|
435
|
-
get_corporation_contract_items_raw(contract_id: contract_id, corporation_id: corporation_id, headers: headers, params: params)
|
435
|
+
parse_response(get_corporation_contract_items_raw(contract_id: contract_id, corporation_id: corporation_id, headers: headers, params: params))
|
436
436
|
end
|
437
437
|
alias get_corporations_corporation_id_contracts_contract_id_items get_corporation_contract_items
|
438
438
|
|
@@ -24,7 +24,7 @@ module ESI
|
|
24
24
|
#
|
25
25
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id
|
26
26
|
def get_corporation(corporation_id:, headers: {}, params: {})
|
27
|
-
get_corporation_raw(corporation_id: corporation_id, headers: headers, params: params)
|
27
|
+
parse_response(get_corporation_raw(corporation_id: corporation_id, headers: headers, params: params))
|
28
28
|
end
|
29
29
|
alias get_corporations_corporation_id get_corporation
|
30
30
|
|
@@ -70,7 +70,7 @@ module ESI
|
|
70
70
|
#
|
71
71
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_alliancehistory
|
72
72
|
def get_corporation_alliancehistory(corporation_id:, headers: {}, params: {})
|
73
|
-
get_corporation_alliancehistory_raw(corporation_id: corporation_id, headers: headers, params: params)
|
73
|
+
parse_response(get_corporation_alliancehistory_raw(corporation_id: corporation_id, headers: headers, params: params))
|
74
74
|
end
|
75
75
|
alias get_corporation_alliance_history get_corporation_alliancehistory
|
76
76
|
alias get_corporations_corporation_id_alliancehistory get_corporation_alliancehistory
|
@@ -236,7 +236,7 @@ module ESI
|
|
236
236
|
#
|
237
237
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_divisions
|
238
238
|
def get_corporation_divisions(corporation_id:, headers: {}, params: {})
|
239
|
-
get_corporation_divisions_raw(corporation_id: corporation_id, headers: headers, params: params)
|
239
|
+
parse_response(get_corporation_divisions_raw(corporation_id: corporation_id, headers: headers, params: params))
|
240
240
|
end
|
241
241
|
alias get_corporations_corporation_id_divisions get_corporation_divisions
|
242
242
|
|
@@ -293,7 +293,7 @@ module ESI
|
|
293
293
|
#
|
294
294
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_facilities
|
295
295
|
def get_corporation_facilities(corporation_id:, headers: {}, params: {})
|
296
|
-
get_corporation_facilities_raw(corporation_id: corporation_id, headers: headers, params: params)
|
296
|
+
parse_response(get_corporation_facilities_raw(corporation_id: corporation_id, headers: headers, params: params))
|
297
297
|
end
|
298
298
|
alias get_corporations_corporation_id_facilities get_corporation_facilities
|
299
299
|
|
@@ -345,7 +345,7 @@ module ESI
|
|
345
345
|
#
|
346
346
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_icons
|
347
347
|
def get_corporation_icons(corporation_id:, headers: {}, params: {})
|
348
|
-
get_corporation_icons_raw(corporation_id: corporation_id, headers: headers, params: params)
|
348
|
+
parse_response(get_corporation_icons_raw(corporation_id: corporation_id, headers: headers, params: params))
|
349
349
|
end
|
350
350
|
alias get_corporations_corporation_id_icons get_corporation_icons
|
351
351
|
|
@@ -511,7 +511,7 @@ module ESI
|
|
511
511
|
#
|
512
512
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_titles
|
513
513
|
def get_corporation_member_titles(corporation_id:, headers: {}, params: {})
|
514
|
-
get_corporation_member_titles_raw(corporation_id: corporation_id, headers: headers, params: params)
|
514
|
+
parse_response(get_corporation_member_titles_raw(corporation_id: corporation_id, headers: headers, params: params))
|
515
515
|
end
|
516
516
|
alias get_corporations_corporation_id_members_titles get_corporation_member_titles
|
517
517
|
|
@@ -568,7 +568,7 @@ module ESI
|
|
568
568
|
#
|
569
569
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members
|
570
570
|
def get_corporation_members(corporation_id:, headers: {}, params: {})
|
571
|
-
get_corporation_members_raw(corporation_id: corporation_id, headers: headers, params: params)
|
571
|
+
parse_response(get_corporation_members_raw(corporation_id: corporation_id, headers: headers, params: params))
|
572
572
|
end
|
573
573
|
alias get_corporations_corporation_id_members get_corporation_members
|
574
574
|
|
@@ -625,7 +625,7 @@ module ESI
|
|
625
625
|
#
|
626
626
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_limit
|
627
627
|
def get_corporation_members_limit(corporation_id:, headers: {}, params: {})
|
628
|
-
get_corporation_members_limit_raw(corporation_id: corporation_id, headers: headers, params: params)
|
628
|
+
parse_response(get_corporation_members_limit_raw(corporation_id: corporation_id, headers: headers, params: params))
|
629
629
|
end
|
630
630
|
alias get_corporations_corporation_id_members_limit get_corporation_members_limit
|
631
631
|
|
@@ -682,7 +682,7 @@ module ESI
|
|
682
682
|
#
|
683
683
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_membertracking
|
684
684
|
def get_corporation_membertracking(corporation_id:, headers: {}, params: {})
|
685
|
-
get_corporation_membertracking_raw(corporation_id: corporation_id, headers: headers, params: params)
|
685
|
+
parse_response(get_corporation_membertracking_raw(corporation_id: corporation_id, headers: headers, params: params))
|
686
686
|
end
|
687
687
|
alias get_corporations_corporation_id_membertracking get_corporation_membertracking
|
688
688
|
|
@@ -730,7 +730,7 @@ module ESI
|
|
730
730
|
#
|
731
731
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_npccorps
|
732
732
|
def get_corporation_npccorps(headers: {}, params: {})
|
733
|
-
get_corporation_npccorps_raw(headers: headers, params: params)
|
733
|
+
parse_response(get_corporation_npccorps_raw(headers: headers, params: params))
|
734
734
|
end
|
735
735
|
alias get_corporations_npccorps get_corporation_npccorps
|
736
736
|
|
@@ -750,7 +750,7 @@ module ESI
|
|
750
750
|
#
|
751
751
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_npccorps
|
752
752
|
def get_corporation_npccorps_raw(headers: {}, params: {})
|
753
|
-
get(
|
753
|
+
get('/corporations/npccorps/', headers: headers, params: params)
|
754
754
|
end
|
755
755
|
|
756
756
|
# Return the roles of all members if the character has the personnel manager role or any grantable role.
|
@@ -778,7 +778,7 @@ module ESI
|
|
778
778
|
#
|
779
779
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles
|
780
780
|
def get_corporation_roles(corporation_id:, headers: {}, params: {})
|
781
|
-
get_corporation_roles_raw(corporation_id: corporation_id, headers: headers, params: params)
|
781
|
+
parse_response(get_corporation_roles_raw(corporation_id: corporation_id, headers: headers, params: params))
|
782
782
|
end
|
783
783
|
alias get_corporations_corporation_id_roles get_corporation_roles
|
784
784
|
|
@@ -1010,7 +1010,7 @@ module ESI
|
|
1010
1010
|
#
|
1011
1011
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases_starbase_id
|
1012
1012
|
def get_corporation_starbase(corporation_id:, starbase_id:, system_id:, headers: {}, params: {})
|
1013
|
-
get_corporation_starbase_raw(corporation_id: corporation_id, starbase_id: starbase_id, system_id: system_id, headers: headers, params: params)
|
1013
|
+
parse_response(get_corporation_starbase_raw(corporation_id: corporation_id, starbase_id: starbase_id, system_id: system_id, headers: headers, params: params))
|
1014
1014
|
end
|
1015
1015
|
alias get_corporations_corporation_id_starbases_starbase_id get_corporation_starbase
|
1016
1016
|
|
@@ -1041,7 +1041,7 @@ module ESI
|
|
1041
1041
|
#
|
1042
1042
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases_starbase_id
|
1043
1043
|
def get_corporation_starbase_raw(corporation_id:, starbase_id:, system_id:, headers: {}, params: {})
|
1044
|
-
params.merge!(
|
1044
|
+
params.merge!('system_id' => system_id)
|
1045
1045
|
get("/corporations/#{corporation_id}/starbases/#{starbase_id}/", headers: headers, params: params)
|
1046
1046
|
end
|
1047
1047
|
|
@@ -1184,7 +1184,7 @@ module ESI
|
|
1184
1184
|
#
|
1185
1185
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_titles
|
1186
1186
|
def get_corporation_titles(corporation_id:, headers: {}, params: {})
|
1187
|
-
get_corporation_titles_raw(corporation_id: corporation_id, headers: headers, params: params)
|
1187
|
+
parse_response(get_corporation_titles_raw(corporation_id: corporation_id, headers: headers, params: params))
|
1188
1188
|
end
|
1189
1189
|
alias get_corporations_corporation_id_titles get_corporation_titles
|
1190
1190
|
|
data/lib/esi/client/dogma.rb
CHANGED
@@ -23,7 +23,7 @@ module ESI
|
|
23
23
|
#
|
24
24
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_attributes_attribute_id
|
25
25
|
def get_dogma_attribute(attribute_id:, headers: {}, params: {})
|
26
|
-
get_dogma_attribute_raw(attribute_id: attribute_id, headers: headers, params: params)
|
26
|
+
parse_response(get_dogma_attribute_raw(attribute_id: attribute_id, headers: headers, params: params))
|
27
27
|
end
|
28
28
|
alias get_dogma_attributes_attribute_id get_dogma_attribute
|
29
29
|
|
@@ -66,7 +66,7 @@ module ESI
|
|
66
66
|
#
|
67
67
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_attributes
|
68
68
|
def get_dogma_attributes(headers: {}, params: {})
|
69
|
-
get_dogma_attributes_raw(headers: headers, params: params)
|
69
|
+
parse_response(get_dogma_attributes_raw(headers: headers, params: params))
|
70
70
|
end
|
71
71
|
|
72
72
|
# Get a list of dogma attribute ids.
|
@@ -86,7 +86,7 @@ module ESI
|
|
86
86
|
#
|
87
87
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_attributes
|
88
88
|
def get_dogma_attributes_raw(headers: {}, params: {})
|
89
|
-
get(
|
89
|
+
get('/dogma/attributes/', headers: headers, params: params)
|
90
90
|
end
|
91
91
|
|
92
92
|
# Returns info about a dynamic item resulting from mutation with a mutaplasmid.
|
@@ -109,7 +109,7 @@ module ESI
|
|
109
109
|
#
|
110
110
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_dynamic_items_type_id_item_id
|
111
111
|
def get_dogma_dynamic_items_type_item(item_id:, type_id:, headers: {}, params: {})
|
112
|
-
get_dogma_dynamic_items_type_item_raw(item_id: item_id, type_id: type_id, headers: headers, params: params)
|
112
|
+
parse_response(get_dogma_dynamic_items_type_item_raw(item_id: item_id, type_id: type_id, headers: headers, params: params))
|
113
113
|
end
|
114
114
|
alias get_dogma_dynamic_items_type_id_item_id get_dogma_dynamic_items_type_item
|
115
115
|
|
@@ -154,7 +154,7 @@ module ESI
|
|
154
154
|
#
|
155
155
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_effects_effect_id
|
156
156
|
def get_dogma_effect(effect_id:, headers: {}, params: {})
|
157
|
-
get_dogma_effect_raw(effect_id: effect_id, headers: headers, params: params)
|
157
|
+
parse_response(get_dogma_effect_raw(effect_id: effect_id, headers: headers, params: params))
|
158
158
|
end
|
159
159
|
alias get_dogma_effects_effect_id get_dogma_effect
|
160
160
|
|
@@ -196,7 +196,7 @@ module ESI
|
|
196
196
|
#
|
197
197
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_effects
|
198
198
|
def get_dogma_effects(headers: {}, params: {})
|
199
|
-
get_dogma_effects_raw(headers: headers, params: params)
|
199
|
+
parse_response(get_dogma_effects_raw(headers: headers, params: params))
|
200
200
|
end
|
201
201
|
|
202
202
|
# Get a list of dogma effect ids.
|
@@ -216,7 +216,7 @@ module ESI
|
|
216
216
|
#
|
217
217
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_effects
|
218
218
|
def get_dogma_effects_raw(headers: {}, params: {})
|
219
|
-
get(
|
219
|
+
get('/dogma/effects/', headers: headers, params: params)
|
220
220
|
end
|
221
221
|
end
|
222
222
|
end
|