is this the best way to do this?

Options
I got this to work, so there's no issue.  I'm just curious if there's a more efficient way to do this.

In my external API request, the URL requires two variables.  So I did this:

[image.png]
I'm coming from integromat where I could easily map variables within the URL.  Can I do that in Xano?  For example, one of the videos mentioned that Xano is built on php.  Could I use $variable inside a URL?

UPDATE: I just saw in the part 3 video of "from idea to app" the use of %s + sprintf.  But if I wanted to have two text variables, how could I do that?

Thanks so much!  Enjoying the platform so far... 🙂

Mitch

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    The set up you have is perfectly fine especially since it is working. We typically do prefer sprintf method but there's just about always more than 1 way to accomplish something inside Xano... 

    And it is definitely possible to have multiple variables inside sprintf... you just add additional arguments for each one.