Created
July 22, 2014 16:58
-
-
Save cybertk/3554a3fc07427d2e03d4 to your computer and use it in GitHub Desktop.
Send sms via Twillio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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