testing seat api

This commit is contained in:
2018-11-21 23:09:40 -06:00
parent 52956e3dfd
commit cf0996ee66
2 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class FinancesController extends Controller
public function displayWallet() {
$helper = new SeatHelper();
$helper->GetCorpJournal(98287666);
$helper->GetCorpJournal(98287666, 3);
}
public function displayTaxes() {

View File

@@ -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);
}