diff --git a/src/Ctct/Auth/CtctOAuth2.php b/src/Ctct/Auth/CtctOAuth2.php index 13df4e8..35d59a9 100755 --- a/src/Ctct/Auth/CtctOAuth2.php +++ b/src/Ctct/Auth/CtctOAuth2.php @@ -70,7 +70,7 @@ public function getAccessToken($code) { try { $response = json_decode($this->client->request('POST', $baseUrl, [ 'query' => $params - ]), true); + ])->getBody(), true); } catch (ClientException $e) { throw $this->convertException($e); } @@ -100,7 +100,7 @@ public function getTokenInfo($accessToken) { try { $response = json_decode($this->client->request('POST', $baseUrl, [ 'query' => array("access_token" => $accessToken) - ]), true); + ])->getBody(), true); } catch (ClientException $e) { throw $this->convertException($e); }