Skip to content

shurph-quiet-harbor/nextcaller-twilio-example-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%