PHP code example of esiswag / esiswag
1. Go to this page and download the library: Download esiswag/esiswag library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
esiswag / esiswag example snippets
use Swag\EsiClient;
use Swag\Config;
use Swag\Sso\Token;
Config::set('eve_client_id', 'urgay');
Config::set('eve_client_secret', 'pwnd');
$client = new EsiClient();
$token = new Token('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
$client->authenticate($token);
$response = $client->get("alliances", "v1");
foreach($response->getBody() as $allianceId) {
echo "Alliance: {$allianceId}\n";
}