Skip to content

Instantly share code, notes, and snippets.

@Sourceless
Created June 27, 2013 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sourceless/5875973 to your computer and use it in GitHub Desktop.
Save Sourceless/5875973 to your computer and use it in GitHub Desktop.
Simple Twilio API send-a-text script
from twilio.rest import TwilioRestClient
import sys
account_sid = 'your-account-sid'
auth_token = 'your-auth-token'
client = TwilioRestClient(account_sid, auth_token)
message = client.sms.messages.create(body=sys.argv[1],
to="your-number",
from_="your-twilio-number")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment