【问题标题】:Twilio to post gather digits with other detailsTwilio 发布收集数字和其他详细信息
【发布时间】:2017-03-02 21:14:47
【问题描述】:

我可以通过 twilio 发送带有收集数字的附加数据吗?我想要实现的是,如果有人发送一条短信说 HELP,我们会打电话给支持团队并询问他们我们已收到短信,如果他们想交谈,然后按 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 twilio-php


    【解决方案1】:

    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> 
    

    希望对您有所帮助。

    【讨论】:

    • 仅供参考,如果您需要传递多个参数,请务必使用&amp;amp; 而不是&amp;,否则会出现应用程序错误。
    猜你喜欢
    • 1970-01-01
    • 2020-08-18
    • 1970-01-01
    • 2021-03-24
    • 2022-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-21
    相关资源
    最近更新 更多