Last active
April 2, 2019 11:10
-
-
Save li2hub/10f54d5c6435e8acb6a866af4eeaf3de to your computer and use it in GitHub Desktop.
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 | |
# Your Account Sid and Auth Token from twilio.com/console | |
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
auth_token = 'your_auth_token' | |
client = Client(account_sid, auth_token) | |
message = client.messages \ | |
.create( | |
body='Hello there!', | |
from_='whatsapp:+1xxxxxxxxxx', | |
to='whatsapp:+1xxxxxxxxxxx' | |
) | |
print(message.sid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment