Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created November 24, 2015 19:40
Show Gist options
  • Save RobSpectre/6430769fc6f403cfa9f1 to your computer and use it in GitHub Desktop.
Save RobSpectre/6430769fc6f403cfa9f1 to your computer and use it in GitHub Desktop.
Test new Twilio certificate
from twilio.rest import TwilioRestClient
ACCOUNT_SID = "ACxxxxxxxx"
AUTH_TOKEN = "yyyyyyyyyyy"
TWILIO_NUMBER = "+15556667777"
NUMBER_TO_TEXT = "+12223334444"
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN, base="https://api.twilio.com:8443")
client.messages.create(from_=TWILIO_NUMBER, to=NUMBER_TO_TEXT, body="Your system is ready for the upcoming change to the Twilio API's SSL certificate. No further action is needed.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment