login dashboard and other lookup changes

This commit is contained in:
2019-09-29 04:31:36 -05:00
parent d2b6476165
commit 2b4e913aed
5 changed files with 84 additions and 56 deletions

View File

@@ -38,12 +38,18 @@ class ContractHelper {
$this->esi = $esiHelper->SetupEsiAuthentication($token);
}
public function GetNumOfContracts() {
}
public function GetContracts($corpId) {
$contracts = null;
public function GetContractDetails($contract) {
try {
$contracts = $this->esi->invoke('get', '/corporations/{corporation_id}/contracts/', [
'corporation_id' => $corpId,
]);
} catch(RequestFailedException $e) {
return null;
}
return $contracts;
}
}