Twilio and Flask app for maintaining a database of users with their current phone numbers.
This application exposes HTTP endpoints that make it possible for someone to ensure that their phone number is up to date in the database.
The flow looks like this:
- Enter your id number
- If your id number is correct: Enter your new phone number
- Save phone number in the database
- If your id number is incorrect, you can try again.
It can be quite confusing to get twilio up and running from scratch. There are many tutorials to do this, but here is how we were the most successful.
- Create a Twillio Account (http://www.twilio.com) you'll get a phone number from twilio, this will be important, and is super easy to do.
pip install -r requirements.txt --use-mirrors
to install the required packages- Download and install ngrok on OSX you can type
brew install ngrok
(if you have homebrew installed) - Start ngrok and have it listen on port 5000
ngrok 5000
you will get back a specific url like: http://6b405a6d.ngrok.com - Goto the Twillio Dashboard, click on "numbers", click on your twilio number, and for your voice url enter your ngrok server url, i.e. http://6b405a6d.ngrok.com/
- Now you should be able to call your twilio phone number and try things out!
Type: nosetests
in the root directory to run the test suite.
- Get the basic app and menu working
- update readme
- add a real database backend
- add more advance menu functionality
- allow people to create accounts via phone, and receive SMS confirmation (this will require using the twilio Auth options, and be more advanced)
- Rachel Leventhal, executive director and founder, Women's Peer to Peer Network
- Our Hatian contributors, Anne, Carla, Josie Anne, Lusmat, Tabitha, and Rose, who wrote the ivr-original code in a 2012 internship. We initially set out to write a twilio app integrating with this code, but ran into problems running and integrating the code, so had to rewrite it in python.
- Professor Tayana Etienne, Science Department of the Haiti State University