BigCommerce Custom App single module for products list and thier image urls

I am working on a custom app of Bigg-Commerce and wanted to implement a module in which I will calls two APIs first is to retrieve the list of all products for specified store and then want to run next API call as many time as their are products in the first API’s response.

Current API call :
[
{
“url”: “/catalog/products”,
“method”: “GET”,
“headers”: {
“X-Auth-Token”: “{{parameters.authToken}}”
},
“response”: {
“output”: “{{body}}”,
“temp”: “{{body.data}}”,
“limit”: “{{parameters.limit}}”
},
“pagination”: {
“qs”: {
“page”: “{{pagination.page}}”
}
}
},
{
“url”: “/catalog/products/{{item.id}}/images”,
“headers”: {
“X-Auth-Token”: “{{parameters.authToken}}”
},
“repeat”: {
“condition”: “{{length(temp)}}”,
“delay”: 20000,
“limit”: 100
},
“response”: {
“iterate” : “{{temp}}”
}
}
]

Kindly please tell me what needs to be corrected.

Hi @AMIT_SOLANKI,

It sounds like you are trying to build a Module that does RPC’s. Remote Procedure Calls are request sent within the context of a module, whenever a value is given in one of the dynamics parameters. You can find more information here: Remote Procedure Calls | Make Apps

Henk
Certified Make Expert and Partner
Book a consult with me

1 Like

Thank you for sharing this details, But I want to call my image URL retrieving API repeatedly based on the number of products above API returns.