Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from twilio.rest import TwilioRestClient
- # Your Account Sid and Auth Token from twilio.com/user/account
- account_sid = "SID"
- auth_token = "TOKEN"
- client = TwilioRestClient(account_sid, auth_token)
- message = client.messages.create(body="This is the SMS text",
- to="+1xxxxxxxxxx", # Replace with your phone number
- from_="+1xxxxxxxxxx") # Replace with your Twilio number
- print message.sid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement