These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
CREST error
$baseurl = "https://api.eveonline.com";$endpoint = "/char/AccountBalance.xml.aspx";$url = $baseurl.$endpoint."?characterID=".$charID."&accessToken=".$token; $ch = curl_init(); $header='Authorization: Bearer '.$token; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_HTTPHEADER, array($header)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); $result = curl_exec($ch);
$options = [ 'scope' => [ 'publicData', 'characterLocationRead', 'characterAccountRead', 'characterStatsRead', 'characterWalletRead', 'characterSkillsRead', 'corporationStructuresRead', 'corporationMembersRead', 'corporationAssetRead', 'fleetRead', 'fleetWrite' ] // array or string ];
$_SESSION['token'] = $provider->getAccessToken('authorization_code', [ 'code' => $_GET['code'] ]);
https://api.eveonline.com/account/APIKeyInfo.xml.aspx?accessToken=".session()->get('Token')->getToken()
SimpleXMLElement Object ( [@attributes] => Array ( [version] => 2 ) [currentTime] => 2016-07-25 14:41:06 [result] => SimpleXMLElement Object ( [key] => SimpleXMLElement Object ( [@attributes] => Array ( [accessMask] => 1113980929 [type] => Character [expires] => 2016-07-25 15:00:42 ) [rowset] => SimpleXMLElement Object ( [@attributes] => Array ( [name] => characters [key] => characterID [columns] => characterID,characterName,corporationID,corporationName,allianceID,allianceName,factionID,factionName ) [row] => SimpleXMLElement Object ( [@attributes] => Array ( [characterID] => 118869737 [characterName] => Crashys [corporationID] => 98234482 [corporationName] => Zonk Squad [allianceID] => 99005742 [allianceName] => Spartan Republic [factionID] => 0 [factionName] => ) ) ) ) ) [cachedUntil] => 2016-07-25 14:41:06 )