检索数字参数twilio

时间:2017-10-11 00:13:55

标签: php twilio twilio-functions

你好我是twilio的新人。我为学校建立了一个小项目,收集一些细节(如账号,邮编,街道号码) 编译后的脚本是:

pred_ = IndexedRowMatrix(Pred_Factors.rdd.map(lambda x: IndexedRow(x[0],x[1]))).toBlockMatrix().transpose().toIndexedRowMatrix()
pred_sims = pred.columnSimilarities()

和handle-user-input.php内容为:

<?xml version="1.0" encoding="UTF-8"?>
    <Response>
        <Gather input="dtmf" numDigits="5" timeout="20" finishOnKey="#" action="http://mywebsite.com/handle-user-input.php">
            <Say voice="woman">Welcome</Say>
            <Say voice="woman" language="es">para servicio en espaniol marque 9</Say>
            <Say voice="alice">For account access, or questions, enter your account number followed by pound</Say>
            <Say voice="alice">For everything else, say other options </Say>
        </Gather>

        <!-- If they didnt put an input say this then retry -->
        <Say voice="woman">For account access, say or enter your acount number, one digit at a time, followed by pound. You can also say "other options" or press 2</Say>
        <Redirect>http://mywebsite. com/handle-incoming-call.xml</Redirect>
    </Response>`

现在,我不想从Twilio仪表板获取我每次收到的详细信息。 我听说我可以检索&#34;结果&#34;在我的网站上的.txt或日志中。我到处搜索但我找不到这个脚本!找到了一些fwrite()函数,但我无法正确格式化所有内容。请帮忙!

0 个答案:

没有答案