Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit 249c605

Browse files
committed
Merge pull request #121 from chrisnetonline/development
Properly retrieve message body from Guzzle prior to calling json_deco…
2 parents d2fdc4f + 56980a8 commit 249c605

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Ctct/Auth/CtctOAuth2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getAccessToken($code) {
7070
try {
7171
$response = json_decode($this->client->request('POST', $baseUrl, [
7272
'query' => $params
73-
]), true);
73+
])->getBody(), true);
7474
} catch (ClientException $e) {
7575
throw $this->convertException($e);
7676
}
@@ -100,7 +100,7 @@ public function getTokenInfo($accessToken) {
100100
try {
101101
$response = json_decode($this->client->request('POST', $baseUrl, [
102102
'query' => array("access_token" => $accessToken)
103-
]), true);
103+
])->getBody(), true);
104104
} catch (ClientException $e) {
105105
throw $this->convertException($e);
106106
}

0 commit comments

Comments
 (0)