Constructor
new SetViewPortion(userId, itemId, portion, optional)
Construct the request
Parameters:
Name | Type | Description |
---|---|---|
userId |
string | User who viewed a portion of the item |
itemId |
string | Viewed item |
portion |
number | Viewed portion of the item (number between 0.0 (viewed nothing) and 1.0 (viewed full item) ). It should be the really viewed part of the item, no matter seeking, so for example if the user seeked immediately to half of the item and then viewed 10% of the item, the `portion` should still be `0.1`. |
optional |
Object | Optional parameters given as an object with structure name of the parameter: value - Allowed parameters: - *sessionId* - Type: string - Description: ID of session in which the user viewed the item. Default is `null` (`None`, `nil`, `NULL` etc. depending on language). - *timestamp* - Type: string|number - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - *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 view portion is based on a recommendation request, `recommId` is the id of the clicked recommendation. - *additionalData* - Type: - Description: A dictionary of additional data for the interaction. |
- 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