Simple Python script to send SMS using Twilio:

from twilio.rest import Client


# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = 'SID_HERE'
auth_token = 'AUTH_TOKEN_HERE'
client = Client(account_sid, auth_token)

message = client.messages \
                .create(
                     body="Welcome to LHD",
                     from_='NUMBER_PURCHASED_FROM_TWILIO',
                     to='YOUR_NUMBER_HERE'
                 )

print(message.sid)

Built With

Share this project:

Updates