Created
April 27, 2015 10:36
-
-
Save nicolaskempf57/4cfd3001f7c18a0a18fe to your computer and use it in GitHub Desktop.
smsGateway : send sms to all contacts
( https://smsgateway.me/ )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include "smsGateway.php"; | |
$smsGateway = new SmsGateway('ADRESSE_EMAIL', 'MOT_DE_PASSE'); | |
$deviceID= IDENTIFIANT_DE_L_APPAREIL; | |
$contacts = $smsGateway->getContacts(); | |
$arrayContacts=array(); | |
foreach($contacts["response"]["result"]["data"] as $contact) { | |
$arrayContacts[]=$contact["id"]; | |
} | |
$smsGateway->sendMessageToContact($arrayContacts, $message, $deviceID); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment