Documentation

Send SMS request

This request sends an SMS to a French mobile number:
0600000000 or 0700000000

To send SMS outside France, please contact customer service.

Request URL: http://www.expedy.fr/api/sms

ParameterDescriptionFormat
sms_senderSender ID appearing on the recipient’s phone.11 characters
(A-Z,0-9)
sms_msgMessage content.
If the message exceeds 160 characters, it is split into as many SMS messages as necessary. Up to 10 messages maximum.
max 10x 160 characters
sms_phoneRecipient number10 digital ex: 0601010101

PHP code example

 
// SEND AN SMS ( api/sms )

define('DS_SERVICE', 'api/sms'); // {{{wpml_tag_1}}} $sms_sender,
 'sms_phone' => $sms_phone,
 'sms_msg' => $sms_msg
);

$data_request = array(
 'sid' => SID,
 'token' => TOKEN,
 'params' => $data_params
);

// Request execution
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, DS_SERVICE_URL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data_request));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec ($ch);
curl_close ($ch);


?>

Français (French) English Español (Spanish)