This commit is contained in:
2018-11-21 22:48:40 -06:00
parent c991f34a94
commit 52956e3dfd
+4 -3
View File
@@ -18,13 +18,14 @@ class SeatHelper {
$guzzle = new Client([ $guzzle = new Client([
'headers' => [ 'headers' => [
'X-Token' => 'EXXruHji5xYGO07C9W31cDjjZ0D3nPVw', 'X-Token' => 'EXXruHji5xYGO07C9W31cDjjZ0D3nPVw',
'Accept:' => 'application/json', 'Accept' => 'application/json',
'Content-Type' => 'application/json',
'X-CSRF-Token' => 'EXXruHji5xYGO07C9W31cDjjZ0D3nPVw', '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);
//$body = json_decode($data->getBody()); $body = $data->getBody()->getContents();
dd($data->getBody()); dd($body);
} }
private function DecodeDate($date) { private function DecodeDate($date) {