Opening a door with a simple phone call.
You call Twilio, twilio contacts the app passing your phone number among the params, the apps check if the number is authorized. If it is the Door.open method is called, if it's not you get told nicely that you are not known and ask if you want to be redirected to a real human.
This app is rspec tested, the following command will run the test suite.
bundle exec rake rspec
Since there is very little to store I decided to play a bit more and use Cloudant to store phone entries. Each entry is simple :
{'number' => '0600000000', 'name' => 'Ralph', 'authorized' => true}
- Create something to add new people easily.
In testing most data is read from temp files, once deployed it's a different story.
- CLOUDANT_HOST
- CLOUDANT_KEY
- CLOUDANT_PASSWORD
- DOOR_URL
- FLOWDOCK_FLOW_TOKEN
- NOTIFICATION_MESSAGE (the message that's sent to flowdock)
Under Mit license ! See LICENSE file.
- Thomas Riboulet / @mcansky
- Snootlab / @snootlab
- Tau / @taucw