Created
January 16, 2013 08:58
-
-
Save benheymink/4545688 to your computer and use it in GitHub Desktop.
A sample Twilio App
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
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