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/jsonAuthorization– the token obtained from IAS at signon
Mandatory arguments
userActivity– the activity being reported. One of:downloadwatchbookmarkrecordwatchtrailerplaypurchasesetreminderlikedislike
accountId(in URL) – the ID of the accountdeviceType– the device typecontentId– 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.