We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc3cf7 commit 07b659cCopy full SHA for 07b659c
src/Client.php
@@ -273,14 +273,13 @@ public function setClientSecret($clientSecret)
273
public function getAccessToken($code = '')
274
{
275
if (!empty($code)) {
276
- $params = [
+ $uri = $this->buildUrl('accessToken', [
277
'grant_type' => self::OAUTH2_GRANT_TYPE,
278
self::OAUTH2_RESPONSE_TYPE => $code,
279
'redirect_uri' => $this->getRedirectUrl(),
280
'client_id' => $this->getClientId(),
281
'client_secret' => $this->getClientSecret(),
282
- ];
283
- $uri = $this->buildUrl('accessToken', $params);
+ ]);
284
$guzzle = new GuzzleClient([
285
'base_uri' => $this->getOAuthApiRoot(),
286
'headers' => [
0 commit comments