Author: Colin Devroe
Three Toe accepts a Twilio webhook POST and responds to the sender with the contents of a TXT file (based on the body of a sender's message) if found.
- Sender TXTs Twilio powered phone number with "T0001"
- Twilio sends webhook to Three Toe
- Three Toe looks for "T0001.txt" in /responses
- If found, responds. If not found, responds with responses/notfound.txt
This simple script was built to scratch an itch and learn the basics of the Twilio API. You can read more about the backstory on my blog.
- Copy entire app to server
- Copy app/config-private-sample.php and create app/config-private.php
- Fill in Twilio account information, phone numbers, app URL, and password in your config-private.php
- Open /configure to create, edit, and delete codes and responses
(You'll need to set up a phone number on Twilio with a webbook that points to your URL.)
- New: Bootstrap-based UI
- New: About page.
- Fixed: Mobile considerations
- Fixed: App determination if Twilio is sending a request or not
- Added: Code & Response configuration panel
- Update: Generic "not found" response to make less real estate specific
- Updated readme
- Initial app
- Basic responses based on text file
- Basic response if no code found
- Readme