From ac0cbd6494fdc4fe402ec701257c93248bd25036 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 14 Nov 2018 01:26:02 -0600 Subject: [PATCH] 401 errors --- app/Library/Fleet.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Library/Fleet.php b/app/Library/Fleet.php index 43e14036e..a92bb09cd 100644 --- a/app/Library/Fleet.php +++ b/app/Library/Fleet.php @@ -99,12 +99,13 @@ class Fleet { $configuration->cache = NullCache::class; $configuration->logfile_location = '/var/www/w4rpservices/storage/logs/eseye'; //Create the ESI Call Container - $esi = new \Seat\Eseye\Eseye(new \Seat\Eseye\Containers\EsiAuthentication([ + $authentication = new \Seat\Eseye\Containers\EsiAuthentication([ 'client_id' => 'e5848fea3618427a8ee0dccb6a04fc62', 'secret' => 'TdnNGRM8RTNSifZdaIc9yHTTkYPgYEEXHRIbT6oY', 'refresh_token' => $token[0]->refresh_token, - ])); - + ]); + $esi = new \Seat\Eseye\Esesye($authentication); + try { //Setup the body of the esi message and perform the call $esi->setBody(['character_id' => $charId,