Guest User

Untitled

a guest
Jan 19th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. from twilio.rest import Client
  2.  
  3.  
  4. # Your Account Sid and Auth Token from twilio.com/console
  5. account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
  6. auth_token = 'your_auth_token'
  7.  
  8. client = Client(account_sid, auth_token)
  9.  
  10. message = client.messages \
  11. .create(
  12. body="Heyy. This is your Pi with an eye",
  13. from_='+17192158586',
  14. to='+91xxxxxxxxxx'
  15. )
  16.  
  17. print(message.sid)
Add Comment
Please, Sign In to add comment