Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # Download the helper library from https://www.twilio.com/docs/python/install
  2. from twilio.rest import Client
  3.  
  4.  
  5. # Your Account Sid and Auth Token from twilio.com/console
  6. # DANGER! This is insecure. See http://twil.io/secure
  7. account_sid = 'n'
  8. auth_token = 'your_auth_token'
  9. client = Client(account_sid, auth_token)
  10.  
  11. message = client.messages \
  12. .create(
  13. body="Join Earth's mightiest heroes. Like Kevin Bacon.",
  14. from_='+15017122661',
  15. to='+15558675310'
  16. )
  17.  
  18. print(message.sid)
  19.  
  20. AC09a n 883a586c89502 n 7757c1e4de3a42eb
  21.  
  22. 1493ecef n 7123971c28a1e1 n 180da59712
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement