From b27dd18951dd424178c7aa0abc5ff79ccf1d0415 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 13 Feb 2021 03:52:22 +0900 Subject: [PATCH] guzzle --- app/Library/Esi/Esi.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Library/Esi/Esi.php b/app/Library/Esi/Esi.php index 686383941..4e53d23d6 100644 --- a/app/Library/Esi/Esi.php +++ b/app/Library/Esi/Esi.php @@ -120,8 +120,8 @@ class Esi { } //Setup the new guzzle client - $client = new Client(); - $response = $client->request('POST', 'https://login.eveonline.com/v2/oauth/token', [ + $client = new Client(['base_uri' => 'https://login.eveonline.com']); + $response = $client->request('POST', '/v2/oauth/token', [ 'headers' => [ 'Content-Type' => 'application/x-www-form-urlencoded', 'Host' => 'login.eveonline.com', @@ -133,7 +133,7 @@ class Esi { ] ]); - dd($response->getBody()); + dd(json_decode($response->getBody(), true)); } $authentication = new EsiAuthentication([