sms.php 356 B

123456789101112131415
  1. <?php
  2. require "Services/Twilio.php";
  3. include 'auth.php'
  4. $client = new Services_Twilio($accountSid, $authToken);
  5. $people = array(
  6. "+18037123283" => "David",
  7. );
  8. foreach ($people as $number => $name) {
  9. $sms = $client->account->messages->sendMessage(
  10. "803-712-4787",
  11. $number,
  12. "Hey, Somebody Wants to Chat Online!"
  13. );
  14. }
  15. ?>