Created
October 24, 2019 04:23
-
-
Save leah/159ac7d0ce9fac016a3aec10d045bc9e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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