Blackadams / nextcaller-twilio-example-python

Next Caller Twilio AddOn Example App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nextcaller-twilio-example-python

This project demonstrates usage of the Twilio SDK and Next Caller AddOn for Voice Calls.

When the configured Twilio number is called, an SMS will be sent to the designated target number with details about the caller.

Installation

Requirements:

Clone the GitHub Repository and Create the Heroku Project:

$ git clone git://github.com/nextcaller/nextcaller-twilio-example-python.git
$ cd nextcaller-twilio-example-python
$ heroku login
$ heroku create # Note application URL
$ git push heroku master

Heroku Variables:

  • SMS_FROM - Phone number allocated above
  • SMS_TO - An SMS enabled device or number
  • TWILIO_SID - SID for the Twilio account to use
  • TWILIO_TOKEN - Token for the Twilio account to use

Set Variables:

$ heroku config:set SMS_FROM='+15055551212' SMS_TO='+14045551212' TWILIO_SID='ABC...' TWILIO_TOKEN='10f...'

Configure Twilio Phone Number:

From the Twilio phone numbers page (https://www.twilio.com/console/phone-numbers/), select the number to configure and enter the application URL (noted above) as the Webhook (POST method).

Testing:

To test the application, call the Twilio phone number. You should receive an SMS on the SMS_TO device. The message will include the caller's name, gender, and marital status.

About

Next Caller Twilio AddOn Example App

License:MIT License


Languages

Language:Python 100.0%