Skip to content

Commit 42d4739

Browse files
committed
POST needs json payload
1 parent 557de6a commit 42d4739

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ConstantContact/Client.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,7 @@ public function post(string $url, array $parameters) : ?array
286286
{
287287
try
288288
{
289-
$json = \json_encode($parameters['body'], JSON_PRETTY_PRINT);
290-
$response = $this->getGuzzleClient()->request('POST', $url);
289+
$response = $this->getGuzzleClient(\json_encode($parameters['body'], JSON_PRETTY_PRINT))->request('POST', $url);
291290

292291
return $this->process($response);
293292
}

0 commit comments

Comments
 (0)