OpenTV ENTera & OpenTV Platform Documentation

Retrieve a content rating for an account

Request

To retrieve the rating for a content for an account, send a GET request to:

Bash
https://<host>:<port>/useractivityvault/v1/ratings/content/{contentId}/account/{account}

Headers

  • Content-Type: application/json

  • token – the standard NAGRAVISION HTTP Token, as required for authentication purposes

Mandatory arguments

  • account – account ID

  • 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 to false, this disables the caching of responses from this service

  • pretty – if set to true, 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

JSON
{
  "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.