You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: recombee_api_client/api_requests/add_cart_addition.py
+4-4
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
classAddCartAddition(Request):
8
8
"""
9
-
Adds a cart addition of a given item made by a given user.
9
+
Adds a cart addition of the given item made by the given user.
10
10
11
11
Required parameters:
12
12
@@ -21,9 +21,9 @@ class AddCartAddition(Request):
21
21
22
22
:param cascade_create: Sets whether the given user/item should be created if not present in the database.
23
23
24
-
:param amount: Amount (number) added to cart. The default is 1. For example if `user-x` adds two `item-y` during a single order (session...), the `amount` should equal to 2.
24
+
:param amount: Amount (number) added to cart. The default is 1. For example, if `user-x` adds two `item-y` during a single order (session...), the `amount` should equal 2.
25
25
26
-
:param price: Price of the added item. If `amount` is greater than 1, sum of prices of all the items should be given.
26
+
:param price: Price of the added item. If `amount` is greater than 1, the sum of prices of all the items should be given.
27
27
28
28
:param recomm_id: If this cart addition is based on a recommendation request, `recommId` is the id of the clicked recommendation.
Copy file name to clipboardexpand all lines: recombee_api_client/api_requests/add_item_property.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ class AddItemProperty(Request):
10
10
11
11
Required parameters:
12
12
13
-
:param property_name: Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, caseinsensitively. Also, the length of the property name must not exceed 63 characters.
13
+
:param property_name: Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case-insensitively. Also, the length of the property name must not exceed 63 characters.
14
14
15
15
16
16
:param type: Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
Adds a new Segment into a Manual ReQL Segmentation.
10
+
11
+
The new Segment is defined by a [ReQL](https://docs.recombee.com/reql.html) filter that returns `true` for an item in case that this item belongs to the segment.
12
+
13
+
Required parameters:
14
+
15
+
:param segmentation_id: ID of the Segmentation to which the new Segment should be added
16
+
17
+
:param segment_id: ID of the newly created Segment
18
+
19
+
:param filter: ReQL filter that returns `true` for items that belong to this Segment. Otherwise returns `false`.
20
+
21
+
22
+
23
+
Optional parameters:
24
+
25
+
:param title: Human-readable name of the Segment that is shown in the Recombee Admin UI.
Copy file name to clipboardexpand all lines: recombee_api_client/api_requests/add_purchase.py
+5-5
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
classAddPurchase(Request):
8
8
"""
9
-
Adds a purchase of a given item made by a given user.
9
+
Adds a purchase of the given item made by the given user.
10
10
11
11
Required parameters:
12
12
@@ -21,11 +21,11 @@ class AddPurchase(Request):
21
21
22
22
:param cascade_create: Sets whether the given user/item should be created if not present in the database.
23
23
24
-
:param amount: Amount (number) of purchased items. The default is 1. For example if `user-x` purchases two `item-y` during a single order (session...), the `amount` should equal to 2.
24
+
:param amount: Amount (number) of purchased items. The default is 1. For example, if `user-x` purchases two `item-y` during a single order (session...), the `amount` should equal 2.
25
25
26
-
:param price: Price paid by the user for the item. If `amount` is greater than 1, sum of prices of all the items should be given.
26
+
:param price: Price paid by the user for the item. If `amount` is greater than 1, the sum of prices of all the items should be given.
27
27
28
-
:param profit: Your profit from the purchased item. The profit is natural in e-commerce domain (for example if `user-x` purchases `item-y` for $100 and the gross margin is 30 %, then the profit is $30), but is applicable also in other domains (for example at a news company it may be income from displayed advertisement on article page). If `amount` is greater than 1, sum of profit of all the items should be given.
28
+
:param profit: Your profit from the purchased item. The profit is natural in the e-commerce domain (for example, if `user-x` purchases `item-y` for $100 and the gross margin is 30 %, then the profit is $30) but is also applicable in other domains (for example, at a news company it may be income from a displayed advertisement on article page). If `amount` is greater than 1, the sum of profit of all the items should be given.
29
29
30
30
:param recomm_id: If this purchase is based on a recommendation request, `recommId` is the id of the clicked recommendation.
Copy file name to clipboardexpand all lines: recombee_api_client/api_requests/add_user_property.py
+2-2
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@
6
6
7
7
classAddUserProperty(Request):
8
8
"""
9
-
Adding an user property is somehow equivalent to adding a column to the table of users. The users may be characterized by various properties of different types.
9
+
Adding a user property is somehow equivalent to adding a column to the table of users. The users may be characterized by various properties of different types.
10
10
11
11
Required parameters:
12
12
13
-
:param property_name: Name of the user property to be created. Currently, the following names are reserved:`id`, `userid`, caseinsensitively. Also, the length of the property name must not exceed 63 characters.
13
+
:param property_name: Name of the user property to be created. Currently, the following names are reserved:`id`, `userid`, case-insensitively. Also, the length of the property name must not exceed 63 characters.
14
14
15
15
16
16
:param type: Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`.
0 commit comments