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.
2 parents adec8fd + 4741df6 commit 2977ee8Copy full SHA for 2977ee8
src/Api/Campaigns.php
@@ -71,7 +71,7 @@ public function getForUser(): array
71
if ($result->getStatusCode() !== 200) {
72
throw new \Exception('API key or user invalid.', 1605878128);
73
}
74
- $body = json_decode($result->getBody(), true);
+ $body = json_decode((string) $result->getBody(), true);
75
$campaigns = [];
76
foreach ($body['Campaigns'] as $campaign) {
77
$campaigns[] = new Campaign($campaign, $this->settings);
0 commit comments