Skip to content

Commit

Permalink
POST needs json payload
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfui committed Nov 22, 2024
1 parent 557de6a commit 42d4739
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ConstantContact/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ public function post(string $url, array $parameters) : ?array
{
try
{
$json = \json_encode($parameters['body'], JSON_PRETTY_PRINT);
$response = $this->getGuzzleClient()->request('POST', $url);
$response = $this->getGuzzleClient(\json_encode($parameters['body'], JSON_PRETTY_PRINT))->request('POST', $url);

return $this->process($response);
}
Expand Down

0 comments on commit 42d4739

Please sign in to comment.