Operation Id:
products/opinions/opinions/get [Official Documentaction]
Methods
- opinion Object
- products Object
- clients Object
- scorePositive Object
- scoreNegative Object
- dateRange Object
- resultsPage Integer
- resultsLimit Integer
- ordersBy Array<Object>
- dates dateFrom: DateLike, dateTo: DateLike
- orderBy elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending: boolean
Examples
This function sorts the products' opinions by their rating.
Loading editor...
const result = await idosellRequest.getProductsOpinions .orderBy("rating") .exec();
It retrieves the opinions of products on the specified page and displays a maximum of 10 opinions.
Loading editor...
const result = await idosellRequest.getProductsOpinions .page(2,10) .exec();
This function retrieves the product opinions within the specified date range.
Loading editor...
const result = await idosellRequest.getProductsOpinions .dates("2023-01-01", "2023-01-10") .exec();