getProductsOpinions

Operation Id:
products/opinions/opinions/get [Official Documentaction]
Methods

  • opinion Object
  • products Object
  • clients Object
  • dateRange Object
  • resultsPage Integer
  • resultsLimit Integer
  • ordersBy Array<Object>
  • orderBy elementName: "date"|"rating"|"scorePositive"|"scoreNegative"|"modificationDatetime", descending: boolean
Examples

This function sorts the products' opinions by their rating.

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.

const result = await idosellRequest.getProductsOpinions
	.page(2,10)
	.exec()

This function retrieves the product opinions within the specified date range.

const result = await idosellRequest.getProductsOpinions
	.dates("2023-01-01", "2023-01-10")
	.exec()