Created
August 24, 2019 05:49
-
-
Save aslamanver/66ddd33a50632f7a12764407db5601c1 to your computer and use it in GitHub Desktop.
Twillio SMS - Python (Sending programmable SMS through Twillio)
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 Client | |
def send_sms_twilio(to, body) : | |
account_sid = 'XXXXX' | |
auth_token = 'XXXXX' | |
client = Client(account_sid, auth_token) | |
message = client.messages.create(from_='+18135484868', to=to, body=body) | |
return message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment