recombee_api_client.api_requests.add_detail_view module¶
-
class
recombee_api_client.api_requests.add_detail_view.
AddDetailView
(user_id: str, item_id: str, timestamp: Union[str, int] = UUID('e752dfcc-dd4f-4251-af6e-4dd125a2ad65'), duration: int = UUID('e752dfcc-dd4f-4251-af6e-4dd125a2ad65'), cascade_create: bool = UUID('e752dfcc-dd4f-4251-af6e-4dd125a2ad65'), recomm_id: str = UUID('e752dfcc-dd4f-4251-af6e-4dd125a2ad65'), additional_data: dict = UUID('e752dfcc-dd4f-4251-af6e-4dd125a2ad65'))¶ Bases:
recombee_api_client.api_requests.request.Request
Adds a detail view of a given item made by a given user.
Required parameters:
- Parameters
user_id – User who viewed the item
item_id – Viewed item
Optional parameters:
- Parameters
timestamp – UTC timestamp of the view as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
duration – Duration of the view
cascade_create – Sets whether the given user/item should be created if not present in the database.
recomm_id – If this detail view is based on a recommendation request, recommId is the id of the clicked recommendation.
additional_data – A dictionary of additional data for the interaction.
-
get_body_parameters
() → dict¶ Values of body parameters as a dictionary (name of parameter: value of the parameter).
-
get_query_parameters
() → dict¶ Values of query parameters as a dictionary (name of parameter: value of the parameter).