Use this method to get specific cross sellings bound to a category in the Knowledge instance.
client.getCategoryCrossSellings(contentId:Integer).then(function(response){
//...
});
Name | Type | Description |
---|---|---|
categoryId | integer | Category id in the Knowledge instance. |
This method does not have any options.
This method calls the Knowledge API’s GET /categories/{categoryId}/cross-selling
endpoint. Please refer to the Responses section of that endpoint on the Knowledge API Routes page for the response format.
The following example retrieves cross sellings from category "1":
client.getCategoryCrossSellings(1).then(function(response){
response.data.results.forEach(function(result) {
console.log(`Result(${result.id}): ${result.name}`);
});
});