POST https://webhooks.twilio.com/v1/Accounts/xyz/Flows/xyz
inside
Request URL Parameters
AddOns "{"status":"successful","message":null,"code":null,"results":{"marchex_cleancall":{"request_sid":"abc","status":"successful","message":null,"code":null,"result":{"result":{"recommendation":"PASS","reason":"CleanCall"}}}}}"
CallStatus "ringing"
I want to get "recommendation":"PASS" value in twilio function how can i get this
Try sending this as a parameter in with you Twilio Function:
{{ AddOns | to_json }}
Then parse the the object name (it comes in via the events object). So if you set the Function parameter name to addOn, you would access it in the Twilio Function using event.addOn.
You can then use JSON.parse(event.addOn).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.