Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. from twilio.rest import TwilioRestClient
  2.  
  3. # Your Account Sid and Auth Token from twilio.com/user/account
  4. account_sid = "SID"
  5. auth_token = "TOKEN"
  6. client = TwilioRestClient(account_sid, auth_token)
  7.  
  8. message = client.messages.create(body="This is the SMS text",
  9. to="+1xxxxxxxxxx", # Replace with your phone number
  10. from_="+1xxxxxxxxxx") # Replace with your Twilio number
  11. print message.sid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement