diff --git a/examples/send-sms-campaign.php b/examples/send-sms-campaign.php index 5493972..86863a7 100644 --- a/examples/send-sms-campaign.php +++ b/examples/send-sms-campaign.php @@ -28,6 +28,12 @@ $content = $client->send($request); +if (!array_key_exists('code', $content)) { + echo 'Success'; +} else { + echo 'Failure.'; +} + // --------------------------------- // Result example: // --------------------------------- diff --git a/src/Request/SmsCampaign/SendSmsCampaignRequest.php b/src/Request/SmsCampaign/SendSmsCampaignRequest.php index eb4c779..c5af18d 100644 --- a/src/Request/SmsCampaign/SendSmsCampaignRequest.php +++ b/src/Request/SmsCampaign/SendSmsCampaignRequest.php @@ -60,6 +60,7 @@ public function getQueryArray(): array 'send_at' => $this->sendAt, 'simulation_mode' => $this->simulationMode ], + 'http_errors' => false ]; return $this->filterQueryString($parameters);