esi lookup helper

This commit is contained in:
2019-12-12 00:37:03 -06:00
parent b3db5ab69f
commit dd8f85a356
2 changed files with 2 additions and 10 deletions
-1
View File
@@ -183,7 +183,6 @@ class Esi {
$authentication = new EsiAuthentication([ $authentication = new EsiAuthentication([
'client_id' => $config['client_id'], 'client_id' => $config['client_id'],
'secret' => $config['secret'], 'secret' => $config['secret'],
'refresh_token' => 'N/A',
]); ]);
} else { } else {
$authentication = new EsiAuthentication([ $authentication = new EsiAuthentication([
+2 -9
View File
@@ -31,16 +31,9 @@ class LookupHelper {
//Construct //Construct
public function __construct() { public function __construct() {
//Declare a variable for use by the construct //Declare a variable for use by the construct
//$esiHelper = new Esi; $esiHelper = new Esi;
//$this->esi = $esiHelper->SetupEsiAuthentication();
$config = config('esi');
$authentication = new EsiAuthentication([
'client_id' => $config['client_id'],
'secret' => $config['secret'],
]);
$this->esi = new Eseye($authentication); $this->esi = $esiHelper->SetupEsiAuthentication();
} }
public function ItemIdToName($itemId) { public function ItemIdToName($itemId) {