Twilio phone calls by Dropbox phone book
Dependencies: EthernetInterface HTTPClient mbed-rtos mbed
Homepage
This simple Twilio example works with HTTPS based Twilio API from mbed, makes phone calls and talks text speech message by referring phone book file in Dropbox.
For using this example:
- Prepare mbed with Ethernet connection.
- Go to http://twilio.com, and sign up.
- Copy Twilio Sid, Token, phone number and TwiML URL in twilio.cpp.
static char twilio_AccountSid[] = "TWILIO_ACCOUNT_SID" ; static char twilio_AuthToken[] = "AUTH_TOKEN" ; static const char twilio_From[] = "PHONE_NUMBER_FROM" ; static const char twilio_Url[] = "http://twimlbin.com/TWIML_PATH" ;
- Copy Dropbox file link URL to dropbox.cpp.
static char Dropbox_URL[] = "https://www.dropbox.com/PHONE_LIST_FILE" ;
- The demo makes a call from Twilio to the phone numbers listed on the Dropbox phone book. Phone book is list of the number CSV file.
- Set up a TwiML web page defining Twilio action, set the url to twilio_Url.
TwiML first step example:
<?xml version="1.0" encoding="UTF-8"?> <Response> <Say language="ja-JP">もしもし。聞こえますか?こちらツイリオです</Say> </Response>
- Build, download it to mbed, and you will get a call on your phone.
Have fun!
For FRDM-k64f: http://mbed.org/users/wolfSSL/code/CyaSSL-Twilio-Dropbox-FRDM/
日本語:http://mbed.org/users/wolfSSL/code/CyaSSL-Twilio/wiki/CyaSSL-Twilio-Dropbox-jp