401 errors

This commit is contained in:
2018-11-14 01:10:36 -06:00
parent 88f3391b53
commit 0b7826314c

View File

@@ -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