Skip to content

Commit 19e7398

Browse files
committed
Add CURLOPT_POSTFIELDS
1 parent 7b3bed5 commit 19e7398

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ConstantContact/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function acquireAccessToken(array $parameters) : bool
9696
}
9797
$url = $this->oauth2URL . '?' . \http_build_query($params);
9898
\curl_setopt($ch, CURLOPT_URL, $url);
99+
\curl_setopt($ch, CURLOPT_POSTFIELDS, \json_encode(['client_id' => $this->clientAPIKey, 'client_secret' => $this->clientSecret, 'code' => $parameters['code']]));
99100

100101
$this->setAuthorization($ch);
101102

0 commit comments

Comments
 (0)