ESI\Client\KillmailsApi
All URIs are relative to https://esi.tech.ccp.is/latest
Method | HTTP request | Description |
---|---|---|
getCharactersCharacterIdKillmailsRecent | GET /characters/{character_id}/killmails/recent/ | List kills and losses |
getKillmailsKillmailIdKillmailHash | GET /killmails/{killmail_id}/{killmail_hash}/ | Get a single killmail |
getCharactersCharacterIdKillmailsRecent
\ESI\Client\Model\GetCharactersCharacterIdKillmailsRecent200Ok[] getCharactersCharacterIdKillmailsRecent($character_id, $max_count, $max_kill_id, $datasource)
List kills and losses
Return a list of character's recent kills and losses --- Alternate route: /v1/characters/{character_id}/killmails/recent/
Alternate route: /legacy/characters/{character_id}/killmails/recent/
Alternate route: /dev/characters/{character_id}/killmails/recent/
--- This route is cached for up to 120 seconds
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: evesso
ESI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new ESI\Client\Api\KillmailsApi();
$character_id = 56; // int | An EVE character ID
$max_count = 50; // int | How many killmails to return at maximum
$max_kill_id = 56; // int | Only return killmails with ID smaller than this.
$datasource = "tranquility"; // string | The server name you would like data from
try {
$result = $api_instance->getCharactersCharacterIdKillmailsRecent($character_id, $max_count, $max_kill_id, $datasource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KillmailsApi->getCharactersCharacterIdKillmailsRecent: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Type | Description | Notes |
---|---|---|---|
character_id | int | An EVE character ID | |
max_count | int | How many killmails to return at maximum | [optional] [default to 50] |
max_kill_id | int | Only return killmails with ID smaller than this. | [optional] |
datasource | string | The server name you would like data from | [optional] [default to tranquility] |
Return type
\ESI\Client\Model\GetCharactersCharacterIdKillmailsRecent200Ok[]
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getKillmailsKillmailIdKillmailHash
\ESI\Client\Model\GetKillmailsKillmailIdKillmailHashOk getKillmailsKillmailIdKillmailHash($killmail_id, $killmail_hash, $datasource)
Get a single killmail
Return a single killmail from its ID and hash --- Alternate route: /v1/killmails/{killmail_id}/{killmail_hash}/
Alternate route: /legacy/killmails/{killmail_id}/{killmail_hash}/
Alternate route: /dev/killmails/{killmail_id}/{killmail_hash}/
--- This route is cached for up to 3600 seconds
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new ESI\Client\Api\KillmailsApi();
$killmail_id = 56; // int | The killmail ID to be queried
$killmail_hash = "killmail_hash_example"; // string | The killmail hash for verification
$datasource = "tranquility"; // string | The server name you would like data from
try {
$result = $api_instance->getKillmailsKillmailIdKillmailHash($killmail_id, $killmail_hash, $datasource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling KillmailsApi->getKillmailsKillmailIdKillmailHash: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Type | Description | Notes |
---|---|---|---|
killmail_id | int | The killmail ID to be queried | |
killmail_hash | string | The killmail hash for verification | |
datasource | string | The server name you would like data from | [optional] [default to tranquility] |
Return type
\ESI\Client\Model\GetKillmailsKillmailIdKillmailHashOk
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]