简体   繁体   English

Twilio:从 XML 获取编号

[英]Twilio: GET number from XML

I want to get a number from a GET Response.我想从 GET Response 中获取一个数字。

The Response looks like this (example number):响应如下所示(示例编号):

<Response>
 <Dial>+12345678912</Dial>
</Response>

I have created a Twilio Flow which has some code blocks and it has a GET Request, but i do not know how to get the Number from the GET Request into my forward call block.我创建了一个 Twilio 流,它有一些代码块并且它有一个 GET 请求,但我不知道如何从 GET 请求中获取数字到我的转发调用块中。

How do i get this number in my forward call block?如何在我的前转呼叫块中获取此号码?

Twilio developer evangelist here. Twilio 开发人员布道师在这里。

I assume you are using Studio when you say you have created a Twilio Flow.当您说您创建了 Twilio 流时,我假设您正在使用 Studio。

If you are sending an HTTP request from a Studio Flow then you can add parameters in the widget.如果您从 Studio Flow 发送 HTTP 请求,则可以在小部件中添加参数。 The parameters can be auto completed from the variables available in the flow.参数可以从流程中可用的变量自动完成。 If you start typing {{ the autocomplete box will drop down.如果您开始输入{{ ,自动完成框将下拉。

Let me know if that helps at all.让我知道这是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM