lookup helper

This commit is contained in:
2019-08-26 20:05:11 -05:00
parent e781554059
commit 918645b05e
2 changed files with 39 additions and 4 deletions

View File

@@ -48,11 +48,12 @@ class LookupHelper {
} catch(RequestFailedException $e) {
}
dd($response->characters[0]->name);
if(isset($response->character[0])) {
$this->LookupCharacter($response->character[0]);
//If the data we are looking for is set, then process the data
if(isset($response->characters[0]->id)) {
$this->LookupCharacter($response->characters[0]->id);
return $response->character;
return $response->characters[0]->id;
} else {
return -1;
}

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Library\Lookups;
//Internal Libraries
use DB;
use Log;
//Library
use Seat\Eseye\Cache\NullCache;
use Seat\Eseye\Configuration;
use Seat\Eseye\Containers\EsiAuthentication;
use Seat\Eseye\Eseye;
use Seat\Eseye\Exceptions\RequestFailedException;
//Models
use App\Models\Lookups\CharacterToCorporation;
use App\Models\Lookups\CorporationToAlliance;
class NewLookupHelper {
//Variables
private $esi;
//Construct
public function __construct() {
$this->esi = new Eseye();
}
}
?>