Skip to content

Commit 8a7976a

Browse files
committed
Fix #20
1 parent 1d41740 commit 8a7976a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

examples/send-sms-campaign.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828

2929
$content = $client->send($request);
3030

31+
if (!array_key_exists('code', $content)) {
32+
echo 'Success';
33+
} else {
34+
echo 'Failure.';
35+
}
36+
3137
// ---------------------------------
3238
// Result example:
3339
// ---------------------------------

src/Request/SmsCampaign/SendSmsCampaignRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function getQueryArray(): array
6060
'send_at' => $this->sendAt,
6161
'simulation_mode' => $this->simulationMode
6262
],
63+
'http_errors' => false
6364
];
6465

6566
return $this->filterQueryString($parameters);

0 commit comments

Comments
 (0)