mukamuka
mukamuka
BBuildShip
Created by mukamuka on 4/1/2024 in #💬・general
mukamuka - Hey guys, how do I fetch all the dat...
Unless there is a "Buildship way" with already existing nodes, I think I will have to make a custom node
8 replies
BBuildShip
Created by mukamuka on 4/1/2024 in #💬・general
mukamuka - Hey guys, how do I fetch all the dat...
Calling external APIs that are paginated will be a very common task, so I wonder if there's a best practice setup already 🤔
8 replies
BBuildShip
Created by mukamuka on 4/1/2024 in #💬・general
mukamuka - Hey guys, how do I fetch all the dat...
@Gaurav Chadha So I am calling an external API from BuildShip The external API response is {data, nextURL} I store the data and then make another API Call to the next URL. In other words, I need a while loop for the API Call Node to call the nextURL to fetch the data This loop will run until there is no nextURL in the response from the external API --- In your example, your Loop node takes an Items argument, but you don't know how many URLs you have in advance. Also, the URL in your API Call node has to change to the next URL
8 replies
BBuildShip
Created by mukamuka on 4/1/2024 in #💬・general
mukamuka - Hey guys, how do I fetch all the dat...
Hey @Gaurav Chadha thanks for looking into this. So, I'm already using an API Call node to fetch the data. But how do I make it fetch the next URL from the response? I can't figure out how to make a "looping" API Call node, if that makes sense.
8 replies