Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 756 Bytes
"""Twilio REST client helpers."""
from import TwilioRestClient
from django_twilio import settings
# Create a single global ``twilio_client`` object that already makes use of
# your django-twilio credentials. This allows you to make API calls using the
# Twilio rest API (
# without handling object creation and authentication yourself.
# NOTE: I'm explicitly defining the API version here so that if users forcibly
# install a later release of twilio-python that uses a different default API
# version--we'll still be OK.
twilio_client = TwilioRestClient(settings.TWILIO_ACCOUNT_SID,
settings.TWILIO_AUTH_TOKEN, version='2010-04-01')
Jump to Line
Something went wrong with that request. Please try again.