From e52099f0e329e7b0bc2bf90339274fe02adc707f Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 28 Nov 2018 22:04:40 -0600 Subject: [PATCH] esi helper --- app/Library/Esi.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Library/Esi.php b/app/Library/Esi.php index 32a7f8b28..2e0416cae 100644 --- a/app/Library/Esi.php +++ b/app/Library/Esi.php @@ -57,6 +57,15 @@ class Esi { return $character['character']; } + public function FindCorporationId($charId) { + $esi = new Eseye(); + $character = $esi->invoke('get', '/characters/{character_id}/', [ + 'character_id' => $charId, + ]); + + return $character->corporation_id; + } + public function FindCorporationName($charId) { $esi = new Eseye(); $character = $esi->invoke('get', '/characters/{character_id}/', [