Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2. // Require the bundled autoload file - the path may need to change
  3. // based on where you downloaded and unzipped the SDK
  4. require __DIR__ . '/vendor/autoload.php';
  5.  
  6. // Use the REST API Client to make requests to the Twilio REST API
  7. use Twilio\Rest\Client;
  8.  
  9. // Your Account SID and Auth Token from twilio.com/console
  10. $sid = 'ACd4edf3e20796a3243af3fd9ece6ab76f';
  11. $token = '54ae8ed11f8f255976a98f5b9223ccf3';
  12. $client = new Client($sid, $token);
  13.  
  14. // Use the client to do fun stuff like send text messages!
  15. $client->messages->create(
  16. // the number you'd like to send the message to
  17. '+6288212091970',
  18. array(
  19. // A Twilio phone number you purchased at twilio.com/console
  20. 'from' => '+14155238886',
  21. // the body of the text message you'd like to send
  22. 'body' => "Hey Jenny! Good luck on the bar exam!"
  23. )
  24. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement