Make phone calls with Twilio using ThingHTTP
There is exactly the same tutorial for my topic but I couldn't make it work. It worked like a charm on SMS service but it wasn't on call. Authentication shouldn't be a problem cause it's similar to SMS configuration. The remaining information that I've doubt is the "Body" part. I filled it like:
From={+Twilio number}&To={+myNumber}&Body=CO2 concentration is exceeding the threshold value and being at :%%channel_1372010_field_3%%
And also, the API URL is:
https://api.twilio.com/2010-04-01/Accounts/{My AuthSID}/Calls.json
I replaced my own information on the above items but It didn't make a call at all even when the TimeControl app run it. Hope to get your help.
3 Comments
Time DescendingHere is the POST format from the Twilio doc . It looks like there isn't a body parameter or key.
curl -X POST https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Calls.json \ --data-urlencode "Url=http://demo.twilio.com/docs/voice.xml" \ --data-urlencode "To=+14155551212" \ --data-urlencode "From=+15017122661" \ -u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN