Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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