Dont get $response->CharacterName in CURL

[CharacterID] => 96797510
[ExpiresOn] => 2019-08-19T15:26:13
[Scopes] => …
[TokenType] => Character
[CharacterOwnerHash] => REDACTED
[IntellectualProperty] => EVE

Someone more have the problem ?


/Character / dont returing name Either …

bonus_remaps] => 2
[charisma] => 21
[intelligence] => 32
[last_remap_date] => 2019-01-16T05:23:03Z
[memory] => 26
[perception] => 21
[willpower] => 21

Solution, i call in a line other thing i do for creating a cache.

function PilotfromInternet($pilot_number){
if ($pilot_number==’’) $pilot_number=valpilot(“CHECK”);
list($cache)=avalues319(“select ESI_NAME from ESI_CACHE where ESI_TYPE=‘PILOT’ and ESI_ID=’$pilot_number’”);
if ($cache<>’’) return trim($cache);

$useragent=“your agent”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $lookup_url);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
$result = curl_exec($ch);
if ($result===false) {
//auth_error(‘No such character on the API’);
if ($name<>’’){
$sql=“insert into ESI_CACHE (ESI_ID,ESI_TYPE,ESI_NAME,ESI_WHEN) values (’$pilot_number’,‘PILOT’,’$name’,now())”;
mysql_query($sql) or die(“error in esi cache pilot register”.mysql_error());

return trim($name);
} // pilot from internet

Should probably use the ESI verify endpoint.

Which would be like

This was a reported issue that was Fixed yesterday as documented in the #sso channel of tweetfleet slack

1 Like

Thanks. I use my function for check pilots instead but is nice they fixed.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.