added purge user command

This commit is contained in:
2019-10-22 02:40:39 -05:00
parent b153607e32
commit a7d3bbb858
3 changed files with 166 additions and 0 deletions
+16
View File
@@ -92,6 +92,21 @@ class Esi {
]);
//Create the esi container
$esi = new Eseye($authentication);
try {
$character = $esi->setBody(array(
$name,
))->invoke('post', '/universe/ids/');
} catch(RequestFailedException $e) {
return null;
}
if(isset($character->characters[0]->id)) {
return $character->characters[0]->id;
} else {
return null;
}
/*
try {
$character = $esi->setQueryString([
'categories' => 'character',
@@ -107,6 +122,7 @@ class Esi {
$character = json_decode($character, true);
return $character['character'];
*/
}
public function FindCorporationId($charId) {