I’m building a Custom App and I see the app review prerequisites require configuring pagination. I’m working through this doc to configure my modules: https://docs.make.com/apps/app-blocks/api/pagination
However I’m unsure how to actually use the pagination settings I’m adding to my app in a Scenario. The only pagination guide I could find is this: https://www.msquare.pro/post/api-pagination
But from what I can tell, this guide works regardless of whether the Module has embedded pagination or not.
Our APIs are a mix of pagination with next_page_tokens and num & start style. I’m starting with next_page_token style.
The Make docs say: In every following request, we’ll use the nextPageToken provided with the previous one. We’ll stop the pagination when no other nextPageToken was received.
This makes me think it’s a native feature I can enable in my Custom App and Make will automatically process the pagination until there are no tokens left. I can’t figure out how to create this directive though.
Here’s how my module is configured:
{
"url": "/search.json",
"method": "GET",
"headers": {},
"qs": {
"engine": "google_jobs",
"q": "{{parameters.q}}",
"location": "{{parameters.location}}",
"uule": "{{parameters.uule}}",
"google_domain": "{{parameters.google_domain}}",
"gl": "{{parameters.gl}}",
"hl": "{{parameters.hl}}",
// "next_page_token": "{{parameters.next_page_token}}",
"chips": "{{parameters.chips}}",
"lrad": "{{parameters.lrad}}",
"ltype": "{{parameters.ltype}}",
"no_cache": "{{parameters.no_cache}}",
"async": "{{parameters.async}}",
"output": "{{parameters.output}}"
},
"pagination": {
"qs": {
"next_page_token": "{{body.serpapi_pagination.next_page_token}}"
},
"condition": "{{body.serpapi_pagination.next_page_token}}"
}
}
Any advice?
