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: src/RecommApi/Requests/RecommendItemsToItem.php
+12-1
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
/**
13
13
* Recommends set of items that are somehow related to one given item, *X*. Typical scenario is when user *A* is viewing *X*. Then you may display items to the user that he might be also interested in. Recommend items to item request gives you Top-N such items, optionally taking the target user *A* into account.
14
14
* It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
15
+
* The returned items are sorted by relevancy (first item being the most relevant).
15
16
*/
16
17
class RecommendItemsToItem extends Request {
17
18
@@ -137,6 +138,10 @@ class RecommendItemsToItem extends Request {
137
138
* @var $expert_settings Dictionary of custom options.
138
139
*/
139
140
protected$expert_settings;
141
+
/**
142
+
* @var bool $return_ab_group If there is a custom AB-testing running, return name of group to which the request belongs.
143
+
*/
144
+
protected$return_ab_group;
140
145
/**
141
146
* @var array Array containing values of optional parameters
142
147
*/
@@ -247,6 +252,9 @@ class RecommendItemsToItem extends Request {
247
252
* - *expertSettings*
248
253
* - Type:
249
254
* - Description: Dictionary of custom options.
255
+
* - *returnAbGroup*
256
+
* - Type: bool
257
+
* - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
250
258
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/RecommendItemsToUser.php
+12-1
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
/**
13
13
* Based on user's past interactions (purchases, ratings, etc.) with the items, recommends top-N items that are most likely to be of high value for a given user.
14
14
* It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
15
+
* The returned items are sorted by relevancy (first item being the most relevant).
15
16
*/
16
17
class RecommendItemsToUser extends Request {
17
18
@@ -117,6 +118,10 @@ class RecommendItemsToUser extends Request {
117
118
* @var $expert_settings Dictionary of custom options.
118
119
*/
119
120
protected$expert_settings;
121
+
/**
122
+
* @var bool $return_ab_group If there is a custom AB-testing running, return name of group to which the request belongs.
123
+
*/
124
+
protected$return_ab_group;
120
125
/**
121
126
* @var array Array containing values of optional parameters
122
127
*/
@@ -211,6 +216,9 @@ class RecommendItemsToUser extends Request {
211
216
* - *expertSettings*
212
217
* - Type:
213
218
* - Description: Dictionary of custom options.
219
+
* - *returnAbGroup*
220
+
* - Type: bool
221
+
* - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
214
222
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
0 commit comments