Step 7Twilio Setup
The voice application answers the phone, plays an intro sound file and asks for the code followed by the # sign. If a code is detected Twilio will do a "GET" action to a PHP file that will lookup the current code from my Code Generator Web Service. If it matches it will call the ioBridge static widget URL and candy will be dispensed.
The SMS application has almost the same PHP code except this time instead of looking for the digits dialed it will look for body of the SMS message.
Check the attached XML and PHP files that generate the TwiML XML.
All in all Twilio is a winner and I have plenty of other ideas for the future.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|

















































