Make phone calls with Twilio using ThingHTTP

NHON NGUYEN il 4 Giu 2021 (Modificato il 4 Giu 2021)
Ultime attività Replicato da Christopher Stapels il 24 Gen 2023

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.

Christopher Stapels
Christopher Stapels il 10 Giu 2021

Here 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

SUVODEEP ROY
SUVODEEP ROY il 23 Gen 2023
From twilio i want to get a call with voice response having channel data and text to speech part. say, the voice i want as 'Temperature is 100 degree farenhite, here 100 is the channel data. What i shall write in thingHTTP body to get the voice in call response along with data and text as speech. I am getting data voice but facing problem with that text part. Please help
Christopher Stapels
Christopher Stapels il 24 Gen 2023
I think that question is better posed on a Twillio community.