Skip to content

Instantly share code, notes, and snippets.

@vsanjuan
Created August 13, 2014 17:19
Show Gist options
  • Save vsanjuan/e28d19b970ac1007b473 to your computer and use it in GitHub Desktop.
Save vsanjuan/e28d19b970ac1007b473 to your computer and use it in GitHub Desktop.
from twilio.rest import TwilioRestClient
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "AC6f5324f90ea19d268bc01915e1acfb34"
auth_token = "8ebc46ae27b58f6f8a373e33f643e900"
client = TwilioRestClient(account_sid, auth_token)
message = client.messages.create(
body="Messasge from Udacity",
to="+1617457392", # Replace with your phone number
from_="+34518808339") # Replace with your Twilio number
print message.sid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment