Skip to content

Latest commit

 

History

History
145 lines (110 loc) · 5.34 KB

LoyaltyApi.md

File metadata and controls

145 lines (110 loc) · 5.34 KB

ESIClient.Dotcore.Api.LoyaltyApi

All URIs are relative to https://esi.evetech.net

Method HTTP request Description
GetCharactersCharacterIdLoyaltyPoints GET /v1/characters/{character_id}/loyalty/points/ Get loyalty points
GetLoyaltyStoresCorporationIdOffers GET /v1/loyalty/stores/{corporation_id}/offers/ List loyalty store offers

GetCharactersCharacterIdLoyaltyPoints

List GetCharactersCharacterIdLoyaltyPoints (int? characterId, string datasource = null, string ifNoneMatch = null, string token = null)

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

using System;
using System.Diagnostics;
using ESIClient.Dotcore.Api;
using ESIClient.Dotcore.Client;
using ESIClient.Dotcore.Model;

namespace Example
{
    public class GetCharactersCharacterIdLoyaltyPointsExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: evesso
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new LoyaltyApi();
            var characterId = 56;  // int? | An EVE character ID
            var datasource = datasource_example;  // string | The server name you would like data from (optional)  (default to tranquility)
            var ifNoneMatch = ifNoneMatch_example;  // string | ETag from a previous request. A 304 will be returned if this matches the current ETag (optional) 
            var token = token_example;  // string | Access token to use if unable to set a header (optional) 

            try
            {
                // Get loyalty points
                List<Object> result = apiInstance.GetCharactersCharacterIdLoyaltyPoints(characterId, datasource, ifNoneMatch, token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoyaltyApi.GetCharactersCharacterIdLoyaltyPoints: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
characterId int? An EVE character ID
datasource string The server name you would like data from [optional] [default to tranquility]
ifNoneMatch 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

List

Authorization

evesso

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetLoyaltyStoresCorporationIdOffers

List GetLoyaltyStoresCorporationIdOffers (int? corporationId, string datasource = null, string ifNoneMatch = null)

List loyalty store offers

Return a list of offers from a specific corporation's loyalty store - -- This route expires daily at 11:05

Example

using System;
using System.Diagnostics;
using ESIClient.Dotcore.Api;
using ESIClient.Dotcore.Client;
using ESIClient.Dotcore.Model;

namespace Example
{
    public class GetLoyaltyStoresCorporationIdOffersExample
    {
        public void main()
        {
            var apiInstance = new LoyaltyApi();
            var corporationId = 56;  // int? | An EVE corporation ID
            var datasource = datasource_example;  // string | The server name you would like data from (optional)  (default to tranquility)
            var ifNoneMatch = ifNoneMatch_example;  // string | ETag from a previous request. A 304 will be returned if this matches the current ETag (optional) 

            try
            {
                // List loyalty store offers
                List<Object> result = apiInstance.GetLoyaltyStoresCorporationIdOffers(corporationId, datasource, ifNoneMatch);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoyaltyApi.GetLoyaltyStoresCorporationIdOffers: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
corporationId int? An EVE corporation ID
datasource string The server name you would like data from [optional] [default to tranquility]
ifNoneMatch string ETag from a previous request. A 304 will be returned if this matches the current ETag [optional]

Return type

List

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]