Created
December 24, 2015 06:25
-
-
Save AnsonYe/7efb1cd16a4e304d8c2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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/python | |
import sys | |
from twilio.rest import TwilioRestClient | |
# Your Account Sid and Auth Token from twilio.com/user/account | |
account_sid = "AC0axxxxxxxxxxxxxxxxxxxxx296ae" | |
auth_token = "93exxxxxxxxxxxxxxxxxxxx263e9" | |
client = TwilioRestClient(account_sid, auth_token) | |
message = client.messages.create(body=sys.argv[2], | |
to=sys.argv[1], | |
from_="+16572338xx8") # 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