我可以通过 twilio 收集的数字发送附加数据吗?我想要实现的是,如果有人发送一条短信说“帮助”,我们会致电支持团队并询问他们我们已收到短信,如果他们想与之交谈,请按 1,如果他们按 1,我们将能够拨打我们收到短信的号码。
我正在检查 twilio 示例,它发送带有收集数字的 POST ,我可以发布其他详细信息吗?
<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 传道者在这里。
您可以在操作 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>
希望有帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)