ESI\Client\CharacterApi
All URIs are relative to https://esi.tech.ccp.is/latest
Method | HTTP request | Description |
---|---|---|
getCharactersCharacterId | GET /characters/{character_id}/ | Get character's public information |
getCharactersCharacterIdCorporationhistory | GET /characters/{character_id}/corporationhistory/ | Get corporation history |
getCharactersCharacterIdPortrait | GET /characters/{character_id}/portrait/ | Get character portraits |
getCharactersNames | GET /characters/names/ | Get character names |
postCharactersCharacterIdCspa | POST /characters/{character_id}/cspa/ | Calculate a CSPA charge cost |
getCharactersCharacterId
\ESI\Client\Model\GetCharactersCharacterIdOk getCharactersCharacterId($character_id, $datasource)
Get character's public information
Public information about a character --- Alternate route: /v3/characters/{character_id}/
Alternate route: /legacy/characters/{character_id}/
--- This route is cached for up to 3600 seconds
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new ESI\Client\Api\CharacterApi();
$character_id = 56; // int | An EVE character ID
$datasource = "tranquility"; // string | The server name you would like data from
try {
$result = $api_instance->getCharactersCharacterId($character_id, $datasource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CharacterApi->getCharactersCharacterId: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Type | Description | Notes |
---|---|---|---|
character_id | int | An EVE character ID | |
datasource | string | The server name you would like data from | [optional] [default to tranquility] |
Return type
\ESI\Client\Model\GetCharactersCharacterIdOk
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]
getCharactersCharacterIdCorporationhistory
\ESI\Client\Model\GetCharactersCharacterIdCorporationhistory200Ok[] getCharactersCharacterIdCorporationhistory($character_id, $datasource)
Get corporation history
Get a list of all the corporations a character has been a member of --- Alternate route: /v1/characters/{character_id}/corporationhistory/
Alternate route: /legacy/characters/{character_id}/corporationhistory/
Alternate route: /dev/characters/{character_id}/corporationhistory/
--- This route is cached for up to 3600 seconds
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new ESI\Client\Api\CharacterApi();
$character_id = 56; // int | An EVE character ID
$datasource = "tranquility"; // string | The server name you would like data from
try {
$result = $api_instance->getCharactersCharacterIdCorporationhistory($character_id, $datasource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CharacterApi->getCharactersCharacterIdCorporationhistory: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Type | Description | Notes |
---|---|---|---|
character_id | int | An EVE character ID | |
datasource | string | The server name you would like data from | [optional] [default to tranquility] |
Return type
\ESI\Client\Model\GetCharactersCharacterIdCorporationhistory200Ok[]
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]
getCharactersCharacterIdPortrait
\ESI\Client\Model\GetCharactersCharacterIdPortraitOk getCharactersCharacterIdPortrait($character_id, $datasource)
Get character portraits
Get portrait urls for a character --- Alternate route: /v2/characters/{character_id}/portrait/
Alternate route: /dev/characters/{character_id}/portrait/
--- This route is cached for up to 3600 seconds
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new ESI\Client\Api\CharacterApi();
$character_id = 56; // int | An EVE character ID
$datasource = "tranquility"; // string | The server name you would like data from
try {
$result = $api_instance->getCharactersCharacterIdPortrait($character_id, $datasource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CharacterApi->getCharactersCharacterIdPortrait: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Type | Description | Notes |
---|---|---|---|
character_id | int | An EVE character ID | |
datasource | string | The server name you would like data from | [optional] [default to tranquility] |
Return type
\ESI\Client\Model\GetCharactersCharacterIdPortraitOk
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]
getCharactersNames
\ESI\Client\Model\GetCharactersNames200Ok[] getCharactersNames($character_ids, $datasource)
Get character names
Resolve a set of character IDs to character names --- Alternate route: /v1/characters/names/
Alternate route: /legacy/characters/names/
Alternate route: /dev/characters/names/
--- This route is cached for up to 3600 seconds
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new ESI\Client\Api\CharacterApi();
$character_ids = array(56); // int[] | A comma separated list of character IDs
$datasource = "tranquility"; // string | The server name you would like data from
try {
$result = $api_instance->getCharactersNames($character_ids, $datasource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CharacterApi->getCharactersNames: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Type | Description | Notes |
---|---|---|---|
character_ids | int[] | A comma separated list of character IDs | |
datasource | string | The server name you would like data from | [optional] [default to tranquility] |
Return type
\ESI\Client\Model\GetCharactersNames200Ok[]
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]
postCharactersCharacterIdCspa
\ESI\Client\Model\PostCharactersCharacterIdCspaCreated postCharactersCharacterIdCspa($character_id, $characters, $datasource)
Calculate a CSPA charge cost
Takes a source character ID in the url and a set of target character ID's in the body, returns a CSPA charge cost --- Alternate route: /v3/characters/{character_id}/cspa/
Alternate route: /legacy/characters/{character_id}/cspa/
Alternate route: /dev/characters/{character_id}/cspa/
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\CharacterApi();
$character_id = 56; // int | An EVE character ID
$characters = new \ESI\Client\Model\PostCharactersCharacterIdCspaCharacters(); // \ESI\Client\Model\PostCharactersCharacterIdCspaCharacters | The target characters to calculate the charge for
$datasource = "tranquility"; // string | The server name you would like data from
try {
$result = $api_instance->postCharactersCharacterIdCspa($character_id, $characters, $datasource);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CharacterApi->postCharactersCharacterIdCspa: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
Name | Type | Description | Notes |
---|---|---|---|
character_id | int | An EVE character ID | |
characters | \ESI\Client\Model\PostCharactersCharacterIdCspaCharacters | The target characters to calculate the charge for | |
datasource | string | The server name you would like data from | [optional] [default to tranquility] |
Return type
\ESI\Client\Model\PostCharactersCharacterIdCspaCreated
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]