Search code examples
xmltwiliotwilio-twiml

Twilio: GET number from XML


I want to get a number from a 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.

How do i get this number in my forward call block?


Solution

  • Twilio developer evangelist here.

    I assume you are using Studio when you say you have created a Twilio Flow.

    If you are sending an HTTP request from a Studio Flow then you can add parameters in the widget. 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.