【发布时间】:2017-03-21 21:39:29
【问题描述】:
我正在尝试通过 twilio 的 Record 动词操作 url 传递数据。当有两个或多个查询字符串参数时失败,但当只有一个时成功。
成功:
var response = '<Response><Say>STUFF TO SAY</Say><Pause length="1"/><Record maxLength="3600" timeout="30" action="/service/training/call/recording?test1=test&test2=test"></Record></Response>';
失败:
var response = '<Response><Say>STUFF TO SAY</Say><Pause length="1"/><Record maxLength="3600" timeout="30" action="/service/training/call/recording?test1=test"></Record></Response>';
错误:
Error on line 1 of document : The reference to entity "test2" must end with the ';' delimiter.
有没有办法可以通过查询字符串传递数据,或者我必须求助于使用 url 参数? "/service/training/call/recording/test/test
【问题讨论】:
标签: node.js twilio twilio-api