Twilio post 收集数字和其他细节
Twilio to post gather digits with other details
我可以通过 twilio 发送带有收集数字的附加数据吗?我试图实现的是,如果有人发送一条短信说帮助,我们会打电话给支持团队并询问他们我们是否收到了短信,如果他们想与之交谈,请按 1,如果他们按 1,我们将能够拨打我们收到短信的号码。
我正在检查 twilio 示例,它发送 POST 和收集的数字,我可以 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>
希望对您有所帮助。
我可以通过 twilio 发送带有收集数字的附加数据吗?我试图实现的是,如果有人发送一条短信说帮助,我们会打电话给支持团队并询问他们我们是否收到了短信,如果他们想与之交谈,请按 1,如果他们按 1,我们将能够拨打我们收到短信的号码。
我正在检查 twilio 示例,它发送 POST 和收集的数字,我可以 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>
希望对您有所帮助。