Created
August 11, 2016 07:56
-
-
Save G10DRAS/9b9df44b0e9c235ab19df0459030d5f7 to your computer and use it in GitHub Desktop.
Twilio Script
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
from twilio.rest import TwilioRestClient | |
accountSID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx' | |
authToken = 'xxxxxxxxxxxxxxxxxxxxxxxx' | |
myTwilioNumber = '+xxxxxxxxxxxxxxxxxx' | |
myCellPhone = '+xxxxxxxxxxxx' | |
def text(message): | |
twilioCli = TwilioRestClient(accountSID, authToken) | |
twilioCli.messages.create(body=message, from_=myTwilioNumber, to=myCellPhone) | |
text("Done!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment