Skip to content

Instantly share code, notes, and snippets.

@cybertk
Created July 22, 2014 16:58
Show Gist options
  • Save cybertk/3554a3fc07427d2e03d4 to your computer and use it in GitHub Desktop.
Save cybertk/3554a3fc07427d2e03d4 to your computer and use it in GitHub Desktop.
Send sms via Twillio
#!/usr/bin/env python
from twilio.rest import TwilioRestClient
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid =
auth_token =
client = TwilioRestClient(account_sid, auth_token)
message = client.sms.messages.create(body="Jenny please?! I love you <3",
to="", # Replace with your phone number
from_="") # 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