Skip to content

Instantly share code, notes, and snippets.

@li2hub
Last active April 2, 2019 11:10
Show Gist options
  • Save li2hub/54cdf55cfc771e27fde2bfcf8be449c1 to your computer and use it in GitHub Desktop.
Save li2hub/54cdf55cfc771e27fde2bfcf8be449c1 to your computer and use it in GitHub Desktop.
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="Heyy. This is your Raspberry Pi",
from_='+1xxxxxxxxxx',
to='+91xxxxxxxxxx'
)
print(message.sid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment