Browse Source

twilio sms

windhamdavid 5 years ago
parent
commit
f8beae458c
1 changed files with 15 additions and 0 deletions
  1. 15 0
      inc/lib/call/sms.php

+ 15 - 0
inc/lib/call/sms.php

@@ -0,0 +1,15 @@
+<?php
+require "Services/Twilio.php";
+include 'auth.php'  
+$client = new Services_Twilio($accountSid, $authToken);
+$people = array(
+    "+18037123283" => "David",
+);
+foreach ($people as $number => $name) {
+    $sms = $client->account->messages->sendMessage(
+        "803-712-4787", 
+        $number,
+        "Hey, Somebody Wants to Chat Online!"
+    );
+}
+?>