To retrieve a reco products
- Call the following methods
recos.reco(RECO_ID).then(console.log)
You will get a json response with all products to display
[
{
"id": "id1",
"title": "title 1",
"price": 20,
"stroke_price": 40,
"discount_rate": 50,
"img_link": "https://image.png",
"link": "https://link1",
...
},
{
"id": "id2",
"title": "title 2",
"price": 30,
"stroke_price": null,
"discount_rate": 0,
"img_link": "https://image.png",
"link": "https://link2",
...
},
...
]
- You can also access the value of a variable by calling
recos.variable(VARIABLE_NAME).then(console.log)