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:downloadwatchbookmarkrecordwatchtrailerplaypurchasesetreminderlikedislike -
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.