Developers

GetContentCrossSellings

Usage

Use this method to get specific cross sellings bind to a content in the Knowledge instance.

client.getContentCrossSellings(contentId:Integer).then(function(response){
    //...
});

Mandatory parameters

Name Type Description
contentId integer Content id in the Knowledge instance.

Options

This method does not have any options.

Response data format

This method calls the Knowledge API’s GET /contents/{contentId}/cross-selling endpoint. Please refer to the Responses section of that endpoint on the Knowledge API Routes page for the response format.

Example

The following example retrieves cross sellings from content "1":

client.getContentCrossSellings(1).then(function(response){
    response.data.results.forEach(function(result) {
        console.log(`Result(${result.id}): ${result.name}`);
    });
});