Skip to content

API SMS

$sms = new SMS();
$sms->setLogin('[email protected]');
$sms->setApiKey('');
$recipient1 = {'number' => '+34932200520'};
$recipient2 = {'number' => '+34932200521'};
$recipients = array($recipient1, $recipient2);
$sms->setRecipients($recipients);
$sms->setText('Mi primer SMS con Octopush!');
$sms->setSender('Su nombre');
$sms->setSendingDate(2021, 12, 25, 20, 0, 0);
$response = $sms->send();

Integración en minutos, envío de SMS en segundos