fetch moon observers job
This commit is contained in:
@@ -73,10 +73,12 @@ class FetchMoonObserverJob implements ShouldQueue
|
|||||||
|
|
||||||
//Get the refresh token for the character
|
//Get the refresh token for the character
|
||||||
$refreshToken = $esiHelper->GetRefreshToken($this->charId);
|
$refreshToken = $esiHelper->GetRefreshToken($this->charId);
|
||||||
|
//Get the esi variable
|
||||||
|
$esi = $esiHelper->SetupEsiAuthentication($refreshToken);
|
||||||
|
|
||||||
//Get the mining observers for the corporation's from esi
|
//Get the mining observers for the corporation's from esi
|
||||||
try {
|
try {
|
||||||
$responses = $esiHelper->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
|
$responses = $esi->invoke('get', '/corporation/{corporation_id}/mining/observers/', [
|
||||||
'corporation_id' => $character->corporation_id,
|
'corporation_id' => $character->corporation_id,
|
||||||
]);
|
]);
|
||||||
} catch(RequestFailedException $e) {
|
} catch(RequestFailedException $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user