Use this method to get specific cross selling content by its id in the Knowledge instance.
client.getCrossSellingById(crossSellingId:Integer).then(function(response){
//...
});
Name | Type | Description |
---|---|---|
crossSellingId | integer | Cross-selling id in the Knowledge instance. |
This method does not have any options.
This method calls the Knowledge API’s GET /cross-selling/{crossSellingID}
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 selling "1":
client.getCrossSellingById(1).then(function(response){
response.data.results.forEach(function(result) {
console.log(`Result(${result.id}): ${result.name}`);
});
});