updates to controllers

This commit is contained in:
2018-12-13 21:44:25 -06:00
parent b4006e3637
commit 2cd6f6f3f8
8 changed files with 103 additions and 26 deletions
+9
View File
@@ -36,6 +36,15 @@ class Esi {
return false;
}
public function GetCharacterName($charId) {
$esi = new Eseye();
$character = $esi->invoke('get', '/characters/{character_id}/', [
'character_id' => $charId,
]);
return $character->name;
}
public function FindCharacterId($name) {
$config = config('esi');
//Create the esi authentication container