From 0b7826314cf845d4e05ad83d545ff75d95622a30 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 14 Nov 2018 01:10:36 -0600 Subject: [PATCH] 401 errors --- app/Library/Fleet.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Library/Fleet.php b/app/Library/Fleet.php index ef8c472a6..2e0dfdb85 100644 --- a/app/Library/Fleet.php +++ b/app/Library/Fleet.php @@ -99,21 +99,20 @@ class Fleet { $configuration->cache = NullCache::class; $configuration->logfile_location = '/var/www/w4rpservices/storage/logs/eseye'; //Create the ESI Call Container - $authentication = new EsiAuthentication([ - 'client_id' => config('esi.client_id'), - 'secret' => config('esi.secret'), - 'refresh_token' => $token[0]->refresh_token, - ]); - $esi = new \Seat\Eseye\Eseye(new \Seat\Eseye\Containers\EsiAuthentication([ 'client_id' => 'e5848fea3618427a8ee0dccb6a04fc62', 'secret' => 'TdnNGRM8RTNSifZdaIc9yHTTkYPgYEEXHRIbT6oY', 'refresh_token' => $token[0]->refresh_token, ])); + $esi->setAuthentication(new \Seat\Eseye\Containers\EsiAuthentication([ + 'client_id' => 'e5848fea3618427a8ee0dccb6a04fc62', + 'secret' => 'TdnNGRM8RTNSifZdaIc9yHTTkYPgYEEXHRIbT6oY', + 'refresh_token' => $token[0]->refresh_token, + ])); + //Crate the ESI Class - $esi = new Eseye($authentication); dd($esi); try { //Setup the body of the esi message and perform the call