Skip to content

Latest commit

 

History

History
188 lines (133 loc) · 7.75 KB

File metadata and controls

188 lines (133 loc) · 7.75 KB

EveSwaggerInterface.KillmailsApi

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

Method HTTP request Description
getCharactersCharacterIdKillmailsRecent GET /characters/{character_id}/killmails/recent/ Get a character's recent kills and losses
getCorporationsCorporationIdKillmailsRecent GET /corporations/{corporation_id}/killmails/recent/ Get a corporation's recent kills and losses
getKillmailsKillmailIdKillmailHash GET /killmails/{killmail_id}/{killmail_hash}/ Get a single killmail

getCharactersCharacterIdKillmailsRecent

[GetCharactersCharacterIdKillmailsRecent200Ok] getCharactersCharacterIdKillmailsRecent(characterId, opts)

Get a character's recent kills and losses

Return a list of a character's kills and losses going back 90 days --- Alternate route: /dev/characters/{character_id}/killmails/recent/ Alternate route: /legacy/characters/{character_id}/killmails/recent/ Alternate route: /v1/characters/{character_id}/killmails/recent/ --- This route is cached for up to 300 seconds

Example

var EveSwaggerInterface = require('eve_swagger_interface');
var defaultClient = EveSwaggerInterface.ApiClient.instance;

// Configure OAuth2 access token for authorization: evesso
var evesso = defaultClient.authentications['evesso'];
evesso.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new EveSwaggerInterface.KillmailsApi();

var characterId = 56; // Number | An EVE character ID

var opts = { 
  'datasource': "tranquility", // String | The server name you would like data from
  'ifNoneMatch': "ifNoneMatch_example", // String | ETag from a previous request. A 304 will be returned if this matches the current ETag
  'page': 1 // Number | Which page of results to return
  'token': "token_example" // String | Access token to use if unable to set a header
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getCharactersCharacterIdKillmailsRecent(characterId, opts, callback);

Parameters

Name Type Description Notes
characterId Number 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]
page Number Which page of results to return [optional] [default to 1]
token String Access token to use if unable to set a header [optional]

Return type

[GetCharactersCharacterIdKillmailsRecent200Ok]

Authorization

evesso

HTTP request headers

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

getCorporationsCorporationIdKillmailsRecent

[GetCorporationsCorporationIdKillmailsRecent200Ok] getCorporationsCorporationIdKillmailsRecent(corporationId, opts)

Get a corporation's recent kills and losses

Get a list of a corporation's kills and losses going back 90 days --- Alternate route: /dev/corporations/{corporation_id}/killmails/recent/ Alternate route: /legacy/corporations/{corporation_id}/killmails/recent/ Alternate route: /v1/corporations/{corporation_id}/killmails/recent/ --- This route is cached for up to 300 seconds --- Requires one of the following EVE corporation role(s): Director

Example

var EveSwaggerInterface = require('eve_swagger_interface');
var defaultClient = EveSwaggerInterface.ApiClient.instance;

// Configure OAuth2 access token for authorization: evesso
var evesso = defaultClient.authentications['evesso'];
evesso.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new EveSwaggerInterface.KillmailsApi();

var corporationId = 56; // Number | An EVE corporation ID

var opts = { 
  'datasource': "tranquility", // String | The server name you would like data from
  'ifNoneMatch': "ifNoneMatch_example", // String | ETag from a previous request. A 304 will be returned if this matches the current ETag
  'page': 1 // Number | Which page of results to return
  'token': "token_example" // String | Access token to use if unable to set a header
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getCorporationsCorporationIdKillmailsRecent(corporationId, opts, callback);

Parameters

Name Type Description Notes
corporationId Number 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]
page Number Which page of results to return [optional] [default to 1]
token String Access token to use if unable to set a header [optional]

Return type

[GetCorporationsCorporationIdKillmailsRecent200Ok]

Authorization

evesso

HTTP request headers

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

getKillmailsKillmailIdKillmailHash

GetKillmailsKillmailIdKillmailHashOk getKillmailsKillmailIdKillmailHash(killmailHash, killmailId, opts)

Get a single killmail

Return a single killmail from its ID and hash --- Alternate route: /dev/killmails/{killmail_id}/{killmail_hash}/ Alternate route: /legacy/killmails/{killmail_id}/{killmail_hash}/ Alternate route: /v1/killmails/{killmail_id}/{killmail_hash}/ --- This route is cached for up to 30758400 seconds

Example

var EveSwaggerInterface = require('eve_swagger_interface');

var apiInstance = new EveSwaggerInterface.KillmailsApi();

var killmailHash = "killmailHash_example"; // String | The killmail hash for verification

var killmailId = 56; // Number | The killmail ID to be queried

var opts = { 
  'datasource': "tranquility", // String | The server name you would like data from
  'ifNoneMatch': "ifNoneMatch_example", // String | ETag from a previous request. A 304 will be returned if this matches the current ETag
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getKillmailsKillmailIdKillmailHash(killmailHash, killmailId, opts, callback);

Parameters

Name Type Description Notes
killmailHash String The killmail hash for verification
killmailId Number The killmail ID to be queried
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

GetKillmailsKillmailIdKillmailHashOk

Authorization

No authorization required

HTTP request headers

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