Skip to content

Commit

Permalink
Add CURLOPT_POSTFIELDS
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfui committed Mar 2, 2024
1 parent 7b3bed5 commit 19e7398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ConstantContact/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public function acquireAccessToken(array $parameters) : bool
}
$url = $this->oauth2URL . '?' . \http_build_query($params);
\curl_setopt($ch, CURLOPT_URL, $url);
\curl_setopt($ch, CURLOPT_POSTFIELDS, \json_encode(['client_id' => $this->clientAPIKey, 'client_secret' => $this->clientSecret, 'code' => $parameters['code']]));

$this->setAuthorization($ch);

Expand Down

0 comments on commit 19e7398

Please sign in to comment.