コード例 #1
0
ファイル: index.php プロジェクト: evetools-php/apihandler
<?php

// Autoload Stuff
require_once 'vendor/autoload.php';
use EVETools\APIHandler\CREST\Handler;
// Build the Handler
$handler = new Handler(['callback' => 'CALLBACK', 'client_id' => 'CLIENT_ID', 'client_secret' => 'SECRET']);
// Get the redirect URL for the SSO.
// It takes an array of scopes.
echo $handler->redirect(['publicData', 'characterLocationRead', 'someOtherScope']);