Skip to main content
Skip table of contents

Retrieve a content rating for a user profile

Request

To retrieve the rating for a content for a user profile, send a GET request to:

BASH
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 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",
      "userId": "Dave",
      "deviceId": "619e24ef63865312a726323e",
      "rating": 3
    }
  ],
  "totalRecords": 1
}

See also

For full details of this API, see User Activity Vault (UAV) API documentation.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.