Skip to content

Instantly share code, notes, and snippets.

@Sourceless
Created July 19, 2013 18:17
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/6041228 to your computer and use it in GitHub Desktop.
Save Sourceless/6041228 to your computer and use it in GitHub Desktop.
Simple text-me twilio script
from twilio.rest import TwilioRestClient
import sys
account_sid = 'my-account-sid'
auth_token = 'my-auth-token'
client = TwilioRestClient(account_sid, auth_token)
message = client.sms.messages.create(body=sys.argv[1],
to="my-number",
from_="twilio-number")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment