ESI::LoyaltyApi
All URIs are relative to https://esi.evetech.net
Method | HTTP request | Description |
---|---|---|
get_characters_character_id_loyalty_points | GET /v1/characters/character_id/loyalty/points/ | Get loyalty points |
get_loyalty_stores_corporation_id_offers | GET /v1/loyalty/stores/corporation_id/offers/ | List loyalty store offers |
get_characters_character_id_loyalty_points
Array<GetCharactersCharacterIdLoyaltyPoints200Ok> get_characters_character_id_loyalty_points(character_id, opts)
Get loyalty points
Return a list of loyalty points for all corporations the character has worked for --- This route is cached for up to 3600 seconds
Example
# load the gem
require 'esi-client-bvv'
# setup authorization
ESI.configure do |config|
# Configure OAuth2 access token for authorization: evesso
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = ESI::LoyaltyApi.new
character_id = 56 # Integer | An EVE character ID
opts = {
datasource: "tranquility", # String | The server name you would like data from
if_none_match: "if_none_match_example", # String | ETag from a previous request. A 304 will be returned if this matches the current ETag
token: "token_example" # String | Access token to use if unable to set a header
}
begin
#Get loyalty points
result = api_instance.get_characters_character_id_loyalty_points(character_id, opts)
p result
rescue ESI::ApiError => e
puts "Exception when calling LoyaltyApi->get_characters_character_id_loyalty_points: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
character_id | Integer | An EVE character ID | |
datasource | String | The server name you would like data from | [optional] [default to tranquility] |
if_none_match | String | ETag from a previous request. A 304 will be returned if this matches the current ETag | [optional] |
token | String | Access token to use if unable to set a header | [optional] |
Return type
Array<GetCharactersCharacterIdLoyaltyPoints200Ok>
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
get_loyalty_stores_corporation_id_offers
Array<GetLoyaltyStoresCorporationIdOffers200Ok> get_loyalty_stores_corporation_id_offers(corporation_id, , opts)
List loyalty store offers
Return a list of offers from a specific corporation's loyalty store --- This route expires daily at 11:05
Example
# load the gem
require 'esi-client-bvv'
api_instance = ESI::LoyaltyApi.new
corporation_id = 56 # Integer | An EVE corporation ID
opts = {
datasource: "tranquility", # String | The server name you would like data from
if_none_match: "if_none_match_example", # String | ETag from a previous request. A 304 will be returned if this matches the current ETag
}
begin
#List loyalty store offers
result = api_instance.get_loyalty_stores_corporation_id_offers(corporation_id, , opts)
p result
rescue ESI::ApiError => e
puts "Exception when calling LoyaltyApi->get_loyalty_stores_corporation_id_offers: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
corporation_id | Integer | An EVE corporation ID | |
datasource | String | The server name you would like data from | [optional] [default to tranquility] |
if_none_match | String | ETag from a previous request. A 304 will be returned if this matches the current ETag | [optional] |
Return type
Array<GetLoyaltyStoresCorporationIdOffers200Ok>
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json