is this the best way to do this?
Options
![Mitch](https://us.v-cdn.net/6037124/user_avatars/2157194.jpg)
Mitch
Member ✭
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
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
-
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.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback