Request
To retrieve the rating for a content for a user profile, send a GET request to:
https://<host>:<port>/useractivityvault/v1/ratings/content/{contentId}/account/{account}/user/{userId}
Headers
-
Content-Type: application/json -
token– the standard NAGRAVISION HTTP Token, as required for authentication purposes
Mandatory arguments
-
account– account ID -
userId– the user profile name -
contentId– content ID
Other arguments
All these arguments are in the query string:
-
fields– a list of fields names to return in the response -
offset– the number of records to skip for pagination -
limit– the number of records to return -
cache– if set tofalse, this disables the caching of responses from this service -
pretty– 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",
"userId": "Dave",
"deviceId": "619e24ef63865312a726323e",
"rating": 3
}
],
"totalRecords": 1
}
See also
For full details of this API, see User Activity Vault (UAV) API documentation.