Reviews
Last updated
Last updated
The Reviews endpoint allows viewing reviews and comments. This end point allows reviews to be viewed for Apps, Stories OR Pathways.
Streams items do not use the reviews endpoint, instead use the /analytics/stream-ratings
endpoint.
v1/analytics/reviews/apps
Get reviews for all content published for an app or a list of apps.
v1/analytics/reviews/pathways
Get reviews for a pathway or a list of pathways.
v1/analytics/reviews/stories
Get reviews for a story or a list of stories.
The items parameter allows you to filter items based on the name or ID of the item. If the item parameter is not provided the endpoint will return the latest 10 items.
The items parameter allows you to filter items based on the name or ID of the item. If the item parameter is not provided the endpoint will return the latest 10 items.
The example below retrieves all story and pathway reviews for a given app.
The example below retrieves reviews for a collection of stories.
Whichever reviews
endpoint you are using a successful response will return an array of items with each item containing a context item (app, pathway or story) and corresponding reviews
data. The example below shows a successful response when using the reviews/apps
endpoint.
Key
Value
items
Array of Strings Item name or ID
Key
Value
Ratings
Object With average rating and number of users that have rated the content.
Comments
Array Comment Items
Key
Value
firstname
String
lastname
String
String
telephone
String
country
String
city
String
comment
String
timestamp
String
item
Object The related content item