Class: ESIClient::FactionWarfareApi
- Inherits:
-
Object
- Object
- ESIClient::FactionWarfareApi
- Defined in:
- lib/esi_client/api/faction_warfare_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_characters_character_id_fw_stats(character_id, opts = {}) ⇒ GetCharactersCharacterIdFwStatsOk
Overview of a character involved in faction warfare Statistical overview of a character involved in faction warfare — This route expires daily at 11:05.
-
#get_characters_character_id_fw_stats_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdFwStatsOk, Fixnum, Hash)>
Overview of a character involved in faction warfare Statistical overview of a character involved in faction warfare — This route expires daily at 11:05.
-
#get_corporations_corporation_id_fw_stats(corporation_id, opts = {}) ⇒ GetCorporationsCorporationIdFwStatsOk
Overview of a corporation involved in faction warfare Statistics about a corporation involved in faction warfare — This route expires daily at 11:05.
-
#get_corporations_corporation_id_fw_stats_with_http_info(corporation_id, opts = {}) ⇒ Array<(GetCorporationsCorporationIdFwStatsOk, Fixnum, Hash)>
Overview of a corporation involved in faction warfare Statistics about a corporation involved in faction warfare — This route expires daily at 11:05.
-
#get_fw_leaderboards(opts = {}) ⇒ GetFwLeaderboardsOk
List of the top factions in faction warfare Top 4 leaderboard of factions for kills and victory points separated by total, last week and yesterday.
-
#get_fw_leaderboards_characters(opts = {}) ⇒ GetFwLeaderboardsCharactersOk
List of the top pilots in faction warfare Top 100 leaderboard of pilots for kills and victory points separated by total, last week and yesterday.
-
#get_fw_leaderboards_characters_with_http_info(opts = {}) ⇒ Array<(GetFwLeaderboardsCharactersOk, Fixnum, Hash)>
List of the top pilots in faction warfare Top 100 leaderboard of pilots for kills and victory points separated by total, last week and yesterday.
-
#get_fw_leaderboards_corporations(opts = {}) ⇒ GetFwLeaderboardsCorporationsOk
List of the top corporations in faction warfare Top 10 leaderboard of corporations for kills and victory points separated by total, last week and yesterday.
-
#get_fw_leaderboards_corporations_with_http_info(opts = {}) ⇒ Array<(GetFwLeaderboardsCorporationsOk, Fixnum, Hash)>
List of the top corporations in faction warfare Top 10 leaderboard of corporations for kills and victory points separated by total, last week and yesterday.
-
#get_fw_leaderboards_with_http_info(opts = {}) ⇒ Array<(GetFwLeaderboardsOk, Fixnum, Hash)>
List of the top factions in faction warfare Top 4 leaderboard of factions for kills and victory points separated by total, last week and yesterday.
-
#get_fw_stats(opts = {}) ⇒ Array<GetFwStats200Ok>
An overview of statistics about factions involved in faction warfare Statistical overviews of factions involved in faction warfare — This route expires daily at 11:05.
-
#get_fw_stats_with_http_info(opts = {}) ⇒ Array<(Array<GetFwStats200Ok>, Fixnum, Hash)>
An overview of statistics about factions involved in faction warfare Statistical overviews of factions involved in faction warfare — This route expires daily at 11:05.
-
#get_fw_systems(opts = {}) ⇒ Array<GetFwSystems200Ok>
Ownership of faction warfare systems An overview of the current ownership of faction warfare solar systems — This route is cached for up to 1800 seconds.
-
#get_fw_systems_with_http_info(opts = {}) ⇒ Array<(Array<GetFwSystems200Ok>, Fixnum, Hash)>
Ownership of faction warfare systems An overview of the current ownership of faction warfare solar systems — This route is cached for up to 1800 seconds.
-
#get_fw_wars(opts = {}) ⇒ Array<GetFwWars200Ok>
Data about which NPC factions are at war Data about which NPC factions are at war — This route expires daily at 11:05.
-
#get_fw_wars_with_http_info(opts = {}) ⇒ Array<(Array<GetFwWars200Ok>, Fixnum, Hash)>
Data about which NPC factions are at war Data about which NPC factions are at war — This route expires daily at 11:05.
-
#initialize(api_client = ApiClient.default) ⇒ FactionWarfareApi
constructor
A new instance of FactionWarfareApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ FactionWarfareApi
Returns a new instance of FactionWarfareApi.
19 20 21 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_characters_character_id_fw_stats(character_id, opts = {}) ⇒ GetCharactersCharacterIdFwStatsOk
Overview of a character involved in faction warfare Statistical overview of a character involved in faction warfare — This route expires daily at 11:05
31 32 33 34 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 31 def get_characters_character_id_fw_stats(character_id, opts = {}) data, _status_code, _headers = get_characters_character_id_fw_stats_with_http_info(character_id, opts) data end |
#get_characters_character_id_fw_stats_with_http_info(character_id, opts = {}) ⇒ Array<(GetCharactersCharacterIdFwStatsOk, Fixnum, Hash)>
Overview of a character involved in faction warfare Statistical overview of a character involved in faction warfare — This route expires daily at 11:05
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 45 def get_characters_character_id_fw_stats_with_http_info(character_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_characters_character_id_fw_stats ...' end # verify the required parameter 'character_id' is set if @api_client.config.client_side_validation && character_id.nil? fail ArgumentError, "Missing the required parameter 'character_id' when calling FactionWarfareApi.get_characters_character_id_fw_stats" end if @api_client.config.client_side_validation && character_id < 1 fail ArgumentError, 'invalid value for "character_id" when calling FactionWarfareApi.get_characters_character_id_fw_stats, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/characters/{character_id}/fw/stats/'.sub('{' + 'character_id' + '}', character_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCharactersCharacterIdFwStatsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_characters_character_id_fw_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_corporations_corporation_id_fw_stats(corporation_id, opts = {}) ⇒ GetCorporationsCorporationIdFwStatsOk
Overview of a corporation involved in faction warfare Statistics about a corporation involved in faction warfare — This route expires daily at 11:05
102 103 104 105 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 102 def get_corporations_corporation_id_fw_stats(corporation_id, opts = {}) data, _status_code, _headers = get_corporations_corporation_id_fw_stats_with_http_info(corporation_id, opts) data end |
#get_corporations_corporation_id_fw_stats_with_http_info(corporation_id, opts = {}) ⇒ Array<(GetCorporationsCorporationIdFwStatsOk, Fixnum, Hash)>
Overview of a corporation involved in faction warfare Statistics about a corporation involved in faction warfare — This route expires daily at 11:05
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 116 def get_corporations_corporation_id_fw_stats_with_http_info(corporation_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_corporations_corporation_id_fw_stats ...' end # verify the required parameter 'corporation_id' is set if @api_client.config.client_side_validation && corporation_id.nil? fail ArgumentError, "Missing the required parameter 'corporation_id' when calling FactionWarfareApi.get_corporations_corporation_id_fw_stats" end if @api_client.config.client_side_validation && corporation_id < 1 fail ArgumentError, 'invalid value for "corporation_id" when calling FactionWarfareApi.get_corporations_corporation_id_fw_stats, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/corporations/{corporation_id}/fw/stats/'.sub('{' + 'corporation_id' + '}', corporation_id.to_s) # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'token'] = opts[:'token'] if !opts[:'token'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['evesso'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetCorporationsCorporationIdFwStatsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_corporations_corporation_id_fw_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fw_leaderboards(opts = {}) ⇒ GetFwLeaderboardsOk
List of the top factions in faction warfare Top 4 leaderboard of factions for kills and victory points separated by total, last week and yesterday. — This route expires daily at 11:05
171 172 173 174 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 171 def get_fw_leaderboards(opts = {}) data, _status_code, _headers = get_fw_leaderboards_with_http_info(opts) data end |
#get_fw_leaderboards_characters(opts = {}) ⇒ GetFwLeaderboardsCharactersOk
List of the top pilots in faction warfare Top 100 leaderboard of pilots for kills and victory points separated by total, last week and yesterday. — This route expires daily at 11:05
229 230 231 232 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 229 def get_fw_leaderboards_characters(opts = {}) data, _status_code, _headers = get_fw_leaderboards_characters_with_http_info(opts) data end |
#get_fw_leaderboards_characters_with_http_info(opts = {}) ⇒ Array<(GetFwLeaderboardsCharactersOk, Fixnum, Hash)>
List of the top pilots in faction warfare Top 100 leaderboard of pilots for kills and victory points separated by total, last week and yesterday. — This route expires daily at 11:05
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 241 def get_fw_leaderboards_characters_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_fw_leaderboards_characters ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/fw/leaderboards/characters/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetFwLeaderboardsCharactersOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_fw_leaderboards_characters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fw_leaderboards_corporations(opts = {}) ⇒ GetFwLeaderboardsCorporationsOk
List of the top corporations in faction warfare Top 10 leaderboard of corporations for kills and victory points separated by total, last week and yesterday. — This route expires daily at 11:05
287 288 289 290 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 287 def get_fw_leaderboards_corporations(opts = {}) data, _status_code, _headers = get_fw_leaderboards_corporations_with_http_info(opts) data end |
#get_fw_leaderboards_corporations_with_http_info(opts = {}) ⇒ Array<(GetFwLeaderboardsCorporationsOk, Fixnum, Hash)>
List of the top corporations in faction warfare Top 10 leaderboard of corporations for kills and victory points separated by total, last week and yesterday. — This route expires daily at 11:05
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 299 def get_fw_leaderboards_corporations_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_fw_leaderboards_corporations ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/fw/leaderboards/corporations/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetFwLeaderboardsCorporationsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_fw_leaderboards_corporations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fw_leaderboards_with_http_info(opts = {}) ⇒ Array<(GetFwLeaderboardsOk, Fixnum, Hash)>
List of the top factions in faction warfare Top 4 leaderboard of factions for kills and victory points separated by total, last week and yesterday. — This route expires daily at 11:05
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 183 def get_fw_leaderboards_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_fw_leaderboards ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/fw/leaderboards/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetFwLeaderboardsOk') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_fw_leaderboards\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fw_stats(opts = {}) ⇒ Array<GetFwStats200Ok>
An overview of statistics about factions involved in faction warfare Statistical overviews of factions involved in faction warfare — This route expires daily at 11:05
345 346 347 348 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 345 def get_fw_stats(opts = {}) data, _status_code, _headers = get_fw_stats_with_http_info(opts) data end |
#get_fw_stats_with_http_info(opts = {}) ⇒ Array<(Array<GetFwStats200Ok>, Fixnum, Hash)>
An overview of statistics about factions involved in faction warfare Statistical overviews of factions involved in faction warfare — This route expires daily at 11:05
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 357 def get_fw_stats_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_fw_stats ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/fw/stats/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetFwStats200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_fw_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fw_systems(opts = {}) ⇒ Array<GetFwSystems200Ok>
Ownership of faction warfare systems An overview of the current ownership of faction warfare solar systems — This route is cached for up to 1800 seconds
403 404 405 406 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 403 def get_fw_systems(opts = {}) data, _status_code, _headers = get_fw_systems_with_http_info(opts) data end |
#get_fw_systems_with_http_info(opts = {}) ⇒ Array<(Array<GetFwSystems200Ok>, Fixnum, Hash)>
Ownership of faction warfare systems An overview of the current ownership of faction warfare solar systems — This route is cached for up to 1800 seconds
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 415 def get_fw_systems_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_fw_systems ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/fw/systems/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetFwSystems200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_fw_systems\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_fw_wars(opts = {}) ⇒ Array<GetFwWars200Ok>
Data about which NPC factions are at war Data about which NPC factions are at war — This route expires daily at 11:05
461 462 463 464 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 461 def get_fw_wars(opts = {}) data, _status_code, _headers = get_fw_wars_with_http_info(opts) data end |
#get_fw_wars_with_http_info(opts = {}) ⇒ Array<(Array<GetFwWars200Ok>, Fixnum, Hash)>
Data about which NPC factions are at war Data about which NPC factions are at war — This route expires daily at 11:05
473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 |
# File 'lib/esi_client/api/faction_warfare_api.rb', line 473 def get_fw_wars_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: FactionWarfareApi.get_fw_wars ...' end if @api_client.config.client_side_validation && opts[:'datasource'] && !['tranquility', 'singularity'].include?(opts[:'datasource']) fail ArgumentError, 'invalid value for "datasource", must be one of tranquility, singularity' end # resource path local_var_path = '/v1/fw/wars/' # query parameters query_params = {} query_params[:'datasource'] = opts[:'datasource'] if !opts[:'datasource'].nil? query_params[:'user_agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'X-User-Agent'] = opts[:'x_user_agent'] if !opts[:'x_user_agent'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<GetFwWars200Ok>') if @api_client.config.debugging @api_client.config.logger.debug "API called: FactionWarfareApi#get_fw_wars\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |