Skip to content

Instantly share code, notes, and snippets.

@leah
Created October 24, 2019 04:23
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 leah/159ac7d0ce9fac016a3aec10d045bc9e to your computer and use it in GitHub Desktop.
Save leah/159ac7d0ce9fac016a3aec10d045bc9e to your computer and use it in GitHub Desktop.
from twilio.rest import Client
account_sid = 'xxx'
auth_token = 'xxx'
from_number = '+15555555555'
def send_text(message):
client = Client(account_sid, auth_token)
# Send text message
client.messages.create(body=message, from_=from_number, to='+14155555555')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment