esi helper
This commit is contained in:
@@ -57,6 +57,15 @@ class Esi {
|
|||||||
return $character['character'];
|
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) {
|
public function FindCorporationName($charId) {
|
||||||
$esi = new Eseye();
|
$esi = new Eseye();
|
||||||
$character = $esi->invoke('get', '/characters/{character_id}/', [
|
$character = $esi->invoke('get', '/characters/{character_id}/', [
|
||||||
|
|||||||
Reference in New Issue
Block a user