body for esi
This commit is contained in:
@@ -100,13 +100,11 @@ class Fleet {
|
|||||||
]);
|
]);
|
||||||
//Crate the ESI Class
|
//Crate the ESI Class
|
||||||
$esi = new Eseye($authentication);
|
$esi = new Eseye($authentication);
|
||||||
|
//Setup the body of the esi message
|
||||||
|
$esi->setBody(['character_id' => $charId, 'role' => 'squad_member']);
|
||||||
//Perform the call to ESI
|
//Perform the call to ESI
|
||||||
$error = $esi->invoke('post', '/fleets/{fleet_id}/members/', [
|
$error = $esi->invoke('post', '/fleets/{fleet_id}/members/', [
|
||||||
'fleet_id' => $this->fleet,
|
'fleet_id' => $this->fleet,
|
||||||
'body' => [
|
|
||||||
'character_id' => $charId,
|
|
||||||
'role' => 'squad_member',
|
|
||||||
],
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $error;
|
return $error;
|
||||||
|
|||||||
Reference in New Issue
Block a user