Class: AddDetailView

AddDetailView(userId, itemId, optional)

Adds a detail view of a given item made by a given user.

Constructor

new AddDetailView(userId, itemId, optional)

Construct the request
Parameters:
Name Type Description
userId string User who viewed the item
itemId string Viewed item
optional Object Optional parameters given as an object with structure name of the parameter: value - Allowed parameters: - *timestamp* - Type: string|number - Description: UTC timestamp of the view as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - *duration* - Type: number - Description: Duration of the view - *cascadeCreate* - Type: boolean - Description: Sets whether the given user/item should be created if not present in the database. - *recommId* - Type: string - Description: If this detail view is based on a recommendation request, `recommId` is the id of the clicked recommendation.
Source:

Methods

bodyParameters() → {Object}

Get body parameters
Source:
Returns:
The values of body parameters (name of parameter: value of the parameter)
Type
Object

queryParameters() → {Object}

Get query parameters
Source:
Returns:
The values of query parameters (name of parameter: value of the parameter)
Type
Object