Retrieve a content rating for an account
Request
To retrieve the rating for a content for an account, send a GET request to:
https://<host>:<port>/useractivityvault/v1/ratings/content/{contentId}/account/{account}
Headers
Content-Type: application/jsontoken– the standard NAGRAVISION HTTP Token, as required for authentication purposes
Mandatory arguments
account– account IDcontentId– content ID
Other arguments
All these arguments are in the query string:
fields– a list of fields names to return in the responseoffset– the number of records to skip for paginationlimit– the number of records to returncache– if set tofalse, this disables the caching of responses from this servicepretty– if set totrue, the response is formatted in a human-readable format
Response
A successful request returns an HTTP 200 status.
A bad request returns an HTTP 400 status.
An internal server error returns an HTTP 401 status.
Example
{
"ratings": [
{
"contentId": "avatar1",
"accountId": "Account_Sports",
"deviceId": "619e24ef63865312a726323e",
"rating": 3
}
],
"totalRecords": 1
}
See also
For full details of this API, see User Activity Vault (UAV) API documentation.