testing seat api
This commit is contained in:
@@ -30,7 +30,7 @@ class FinancesController extends Controller
|
||||
|
||||
public function displayWallet() {
|
||||
$helper = new SeatHelper();
|
||||
$helper->GetCorpJournal(98287666);
|
||||
$helper->GetCorpJournal(98287666, 3);
|
||||
}
|
||||
|
||||
public function displayTaxes() {
|
||||
|
||||
@@ -13,7 +13,7 @@ use GuzzleHttp\RequestOptions;
|
||||
|
||||
class SeatHelper {
|
||||
|
||||
public function GetCorpJournal($corporationId) {
|
||||
public function GetCorpJournal($corporationId, $page) {
|
||||
//Setup the guzzle client
|
||||
$guzzle = new Client([
|
||||
'headers' => [
|
||||
@@ -23,7 +23,7 @@ class SeatHelper {
|
||||
'X-CSRF-Token' => 'EXXruHji5xYGO07C9W31cDjjZ0D3nPVw',
|
||||
],
|
||||
]);
|
||||
$data = $guzzle->request('GET', 'https://seat.warpedintentions.com/api/v2/corporation/wallet-journal/' . $corporationId);
|
||||
$data = $guzzle->request('GET', 'https://seat.warpedintentions.com/api/v2/corporation/wallet-journal/' . $corporationId . '?page=' . $page);
|
||||
$body = $data->getBody()->getContents();
|
||||
dd($body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user