SexualHealthInnovations/PrivateResults — pull request #1 by kchau (2014-07-11 20:36:28+00:00)
Title: Basic Twilio integration

DONE:
* Include the Twilio Ruby gem
* Added API routes to serve TwiML for voice requests
* Specs to cover basic cases during call in requests

Left TODO for SHI:
* Add logic to query and handle test results when a patient successfully enters valid username and password

To run it with [ngrok](http://ngrok.com):
```sh
~$ bundle install
~$ export TWILIO_ACCT_SID=AC00000000000000000000000000000000
~$ export TWILIO_TOKEN=99999999999999999999999999999999
~$ rails s
~$ ngrok -authtoken 3000
```
From your Twilio Dashboard, go to the Numbers page and set the Voice Request URL to your ngrok address with the API endpoint of `/api/call_ins/username.xml`. Then call the Twilio phone number associated with your Account.