Search
K

Twilio

Use Twilio to send text notifications.
Find your account SID and Auth Token here
!pip install twilio
import os
from twilio.rest import Client
account_sid = 'TWILIO_ACCOUNT_SID'
auth_token = 'TWILIO_AUTH_TOKEN'
client = Client(account_sid, auth_token)
message = client.messages \
.create(
messaging_service_sid='TWILIO_SERVICE_SID',
body="Your Gretel model has been completed.",
to='YOUR_PHONE_NUMBER'
)
print(message.sid)
Last modified 9mo ago