Skip to content

Instantly share code, notes, and snippets.

@G10DRAS
Created August 11, 2016 07:56
Show Gist options
  • Save G10DRAS/9b9df44b0e9c235ab19df0459030d5f7 to your computer and use it in GitHub Desktop.
Save G10DRAS/9b9df44b0e9c235ab19df0459030d5f7 to your computer and use it in GitHub Desktop.
Twilio Script
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