Overview
You can use this request to send an SMS campaign.
The Method
API | - | Method |
---|---|---|
REST | POST | https://[YourURL]/api/2.0/sms_actions/send/:id |
XML-RPC | Call | sms.SendSms |
Parameters
Property | Type | Description | Required |
---|---|---|---|
id | integer | ID of the SMS | yes |
Example Request
$url = '(Your URL)/api/2.0/sms_actions/send/:sms_id'; $method = 'POST'; $cSession = curl_init(); $headers = array(); $auth = base64_encode($username . ':' . $apikey); $headers[] = 'Authorization: Basic ' . $auth; curl_setopt($cSession, CURLOPT_URL, $url); curl_setopt($cSession, CURLOPT_RETURNTRANSFER, true); curl_setopt($cSession, CURLOPT_HEADER, false); curl_setopt($cSession, CURLOPT_CUSTOMREQUEST, strtoupper($method)); curl_setopt($cSession, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($cSession); curl_close($cSession);
Example Response
HTTP 200 OK