Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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:+14155238886',
- to='whatsapp:+15005550006'
- )
- print(message.sid)
Add Comment
Please, Sign In to add comment