Events 在Nexmo中,如何通过NCCO输入操作传递参数

Events 在Nexmo中,如何通过NCCO输入操作传递参数,events,parameters,action,ivr,nexmo,Events,Parameters,Action,Ivr,Nexmo,我正在使用laravel 5.2,我正在尝试从中“路由入站呼叫” 所以我知道我可以使用“输入”作为“操作”,使用“路由”作为“事件URL”。 例如,根据那个页面,我可以这样使用 [ { "action": "talk", "text": "Please enter a digit" }, { "action": "input", "eventUrl": ["https://example.com/ivr"] } ] 问题就在这里 我想向该路由传

我正在使用laravel 5.2,我正在尝试从中“路由入站呼叫”

所以我知道我可以使用“输入”作为“操作”,使用“路由”作为“事件URL”。

例如,根据那个页面,我可以这样使用

[
  {
    "action": "talk",
    "text": "Please enter a digit"
  },
  {
    "action": "input",
    "eventUrl": ["https://example.com/ivr"]
  }
]
问题就在这里

我想向该路由传递一些参数-“”。例如,从电话号码如下

[
  {
    "action": "talk",
    "text": "Please enter a digit"
  },
  {
    "action": "input",
    "eventUrl": ["https://example.com/ivr"],
    "from": $fromPhoneNumber,
  }
]
但似乎无法将参数传递给“eventUrl”

它说现在只有下面的东西

timeOut The result of the callee's activity is sent to the eventUrl webhook endpoint timeOut seconds after the last action. The default value is 3. No
maxDigits   The number of digits the user can press. The maximum value is 20.   No
submitOnHash    Set to true so the callee's activity is sent to your webhook endpoint at eventUrl after he or she presses #. If # is not pressed the result is submitted after timeOut seconds. The default value is false. That is, the result is sent to your webhook endpoint after timeOut seconds. No
eventUrl    Nexmo sends the digits pressed by the callee to this URL after timeOut pause in activity or when # is pressed.  No
eventMethod The HTTP method used to send event information to event_url The default value is POST.  No

如何通过NCCO传递参数?请告诉我。

您可以将参数作为查询字符串的一部分添加到eventUrl

萨姆
开发者拥护者-Nexmo

感谢您的回复,@Sam Machin。但这种“输入”操作的路径使用“POST”方法。你能让我用例子解释更多细节吗?在输入的ncco部分添加:“eventMethod”=>“GET”,然后像@sam machin所说的那样将参数添加到查询字符串中