Overview

You can use this request to send an SMS campaign.

The Method

API-Method
RESTPOSThttps://[YourURL]/api/2.0/sms_actions/send/:id
XML-RPCCallsms.SendSms

Parameters

PropertyTypeDescriptionRequired
idintegerID of the SMSyes

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