Twilio 将发布包含其他详细信息的收集数字 [英] Twilio to post gather digits with other details

查看:30
本文介绍了Twilio 将发布包含其他详细信息的收集数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过 twilio.get 发送带有收集数字的附加数据吗?我试图实现的是,如果有人发送一条短信说帮助",我们会打电话给支持团队并询问他们我们是否收到了短信,如果他们想与之交谈,请按 1,如果他们按 1,我们将能够拨打我们已收到短信的号码.

Can I send additional data with the gather digits by twilio. I am trying to achieve is if someone sends a text saying HELP , we would call a support team and ask them that we have received the text message and if they want to talk to then press 1, and if they press 1 we will be able to call to the number from we have received the text message.

我正在检查 twilio 示例,它发送带有收集数字的 POST,我可以发布其他详细信息,以便进行调用

I was checking the twilio example and it sends the POST with the gather digits , can I post additional details , so a call will be made

<Response>
     <Gather numDigits="1" action="callback.php" method="POST">//I would like to send phone number to be called in this post request
        <Say>We have received a text for help ,to speak with the person  press 1. </Say>
    </Gather>
</Response> 

推荐答案

Twilio 布道者在这里.

Twilio evangelist here.

您可以在操作 url 中将更多数据作为查询字符串参数传递:

You can pass more data as querystring parameters in the action url:

<Response>
    <Gather numDigits="1" action="callback.php?phone=15555555555" method="POST">
        <Say>We have received a text for help ,to speak with the person  press 1.</Say>
    </Gather>
</Response> 

希望有所帮助.

这篇关于Twilio 将发布包含其他详细信息的收集数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆