Skip to main content

Twilio integration for SMS-based Django apps

Project description

Fork of django-twilio-sms by nigma. Maintained by Saurabh Kumar.

Twilio integration for SMS-based Django apps

https://badge.fury.io/py/django-twilio-sms-2.svg?fix https://travis-ci.org/theskumar/django-twilio-sms-2.svg?branch=master

Quickstart

  1. Include django-twilio-sms-2 in your requirements.txt file.

  2. Add django_twilio_sms to INSTALLED_APPS and migrate.

  3. Add the following url to your urlconf:

    url(r"^messaging/", include("django_twilio_sms.urls")),

    this will receive confirmation callbacks for any SMS message that you send using utils.send_sms.

  4. Create a new view and override IncomingSMSView.post_save(self, obj) method to receive SMS messages via callbacks from Twilio. The received obj param will be an instance of IncomingSMS model.

  5. Configure Twilio callback to send notifications to the above view’s url.

  6. Configure settings:

    • TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER - copy credentials from the Twilio panel.

    • TWILIO_CALLBACK_USE_HTTPS - use https or not for delivery confirmation callback urls.

    • TWILIO_CALLBACK_DOMAIN - optionally set domain name or IP of your site (otherwise the server name will be extracted from the request info).

    • TWILIO_DRY_MODE - set if you want to run in test mode.

Dependencies

  • django>=1.7

  • djangorestframework>=2.4.3

  • twilio>=3.6.8

Further Reading

License

django-twilio-sms-2 is released under the MIT license.

Other Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-twilio-sms-2-1.0.2.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file django-twilio-sms-2-1.0.2.tar.gz.

File metadata

File hashes

Hashes for django-twilio-sms-2-1.0.2.tar.gz
Algorithm Hash digest
SHA256 046303ad1d0518ae74fd79b09878d7a990814b1889103437d0ea96b045e66765
MD5 357a1c35702f88272d772813248a4bba
BLAKE2b-256 3b32d2c631017bebbda2f86130e92c0f3ed27d8e932caed92a8d547393d638f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page