Skip to main content
Skip table of contents

Report user activity

Request

Ncanto uses reported user activity to decide what to recommend to that particular user. To report user activity, send a POST request to:

http://<host>:<port>/contentdiscovery/v2/useractivity/{userActivity}/account/{accountId}

Headers

  • Content-Type: application/json
  • Authorization – the token obtained from IAS at signon

Mandatory arguments

  • userActivity – the activity being reported. One of:
    • download
    • watch
    • bookmark
    • record
    • watchtrailer
    • play
    • purchase
    • setreminder
    • like
    • dislike
  • accountId (in URL) – the ID of the account
  • deviceType – the device type
  • contentId – the ID of the content to which the activity relates

Response

A successful request returns an HTTP 202 status.

A bad request returns an HTTP 400 status.

An unauthorised request returns an HTTP 401 status.

See also

For full details of this API, see Content Discovery Gateway (CDG) API documentation.

JavaScript errors detected

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

If this problem persists, please contact our support.