ESI\Client\PlanetaryInteractionApi

All URIs are relative to https://esi.tech.ccp.is/latest

Method HTTP request Description
getCharactersCharacterIdPlanets GET /characters/{character_id}/planets/ Get colonies
getCharactersCharacterIdPlanetsPlanetId GET /characters/{character_id}/planets/{planet_id}/ Get colony layout
getUniverseSchematicsSchematicId GET /universe/schematics/{schematic_id}/ Get schematic information

getCharactersCharacterIdPlanets

\ESI\Client\Model\GetCharactersCharacterIdPlanets200Ok[] getCharactersCharacterIdPlanets($character_id, $datasource)

Get colonies

Returns a list of all planetary colonies owned by a character. --- Alternate route: /v1/characters/{character_id}/planets/ Alternate route: /legacy/characters/{character_id}/planets/ Alternate route: /dev/characters/{character_id}/planets/ --- This route is cached for up to 600 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\PlanetaryInteractionApi();
$character_id = 56; // int | Character id of the target character
$datasource = "tranquility"; // string | The server name you would like data from

try {
    $result = $api_instance->getCharactersCharacterIdPlanets($character_id, $datasource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlanetaryInteractionApi->getCharactersCharacterIdPlanets: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
character_id int Character id of the target character
datasource string The server name you would like data from [optional] [default to tranquility]

Return type

\ESI\Client\Model\GetCharactersCharacterIdPlanets200Ok[]

Authorization

evesso

HTTP request headers

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

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

getCharactersCharacterIdPlanetsPlanetId

\ESI\Client\Model\GetCharactersCharacterIdPlanetsPlanetIdOk getCharactersCharacterIdPlanetsPlanetId($character_id, $planet_id, $datasource)

Get colony layout

Returns full details on the layout of a single planetary colony, including links, pins and routes. Note: Planetary information is only recalculated when the colony is viewed through the client. Information on this endpoint will not update until this criteria is met. --- Alternate route: /v1/characters/{character_id}/planets/{planet_id}/ Alternate route: /legacy/characters/{character_id}/planets/{planet_id}/ Alternate route: /dev/characters/{character_id}/planets/{planet_id}/ --- This route is cached for up to 600 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\PlanetaryInteractionApi();
$character_id = 56; // int | Character id of the target character
$planet_id = 56; // int | Planet id of the target planet
$datasource = "tranquility"; // string | The server name you would like data from

try {
    $result = $api_instance->getCharactersCharacterIdPlanetsPlanetId($character_id, $planet_id, $datasource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlanetaryInteractionApi->getCharactersCharacterIdPlanetsPlanetId: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
character_id int Character id of the target character
planet_id int Planet id of the target planet
datasource string The server name you would like data from [optional] [default to tranquility]

Return type

\ESI\Client\Model\GetCharactersCharacterIdPlanetsPlanetIdOk

Authorization

evesso

HTTP request headers

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

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

getUniverseSchematicsSchematicId

\ESI\Client\Model\GetUniverseSchematicsSchematicIdOk getUniverseSchematicsSchematicId($schematic_id, $datasource)

Get schematic information

Get information on a planetary factory schematic --- Alternate route: /v1/universe/schematics/{schematic_id}/ Alternate route: /legacy/universe/schematics/{schematic_id}/ Alternate route: /dev/universe/schematics/{schematic_id}/ --- This route is cached for up to 3600 seconds

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new ESI\Client\Api\PlanetaryInteractionApi();
$schematic_id = 56; // int | A PI schematic ID
$datasource = "tranquility"; // string | The server name you would like data from

try {
    $result = $api_instance->getUniverseSchematicsSchematicId($schematic_id, $datasource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlanetaryInteractionApi->getUniverseSchematicsSchematicId: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
schematic_id int A PI schematic ID
datasource string The server name you would like data from [optional] [default to tranquility]

Return type

\ESI\Client\Model\GetUniverseSchematicsSchematicIdOk

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]