Skip to content

Instantly share code, notes, and snippets.

@benheymink
Created January 16, 2013 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benheymink/4545688 to your computer and use it in GitHub Desktop.
Save benheymink/4545688 to your computer and use it in GitHub Desktop.
A sample Twilio App
from twilio.rest import TwilioRestClient
account = "MY_ACCOUNT_SID"
token = "MY_ACCOUNT_TOKEN"
client = TwilioRestClient(account, token)
def SendSMS():
message = client.sms.messages.create(to="MY_NUMBER", from_="MY_TWILIO_NUMBER",
body="Hello, World!")
if __name__ == '__main__':
SendSMS()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment