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
Support setting the region of your DB. Added Update / Delete More Items endpoints.
Breaking changes:
Client constructor: protocol parameter (HTTP/HTTPS) moved to options.
Removed deprecated endpoints Item Based Recommendation and User Based Recommendation.
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/DeleteItem.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
/**
13
13
* Deletes an item of given `itemId` from the catalog.
14
14
* If there are any *purchases*, *ratings*, *bookmarks*, *cart additions* or *detail views* of the item present in the database, they will be deleted in cascade as well. Also, if the item is present in some *series*, it will be removed from all the *series* where present.
15
-
* If an item becomes obsolete/no longer available, it is often meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and only exclude the item from recommendations. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
15
+
* If an item becomes obsolete/no longer available, it is meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
* If an item becomes obsolete/no longer available, it is meaningful to **keep it in the catalog** (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
15
+
*/
16
+
class DeleteMoreItems extends Request {
17
+
18
+
/**
19
+
* @var string $filter A [ReQL](https://docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated.
20
+
*/
21
+
protected$filter;
22
+
23
+
/**
24
+
* Construct the request
25
+
* @param string $filter A [ReQL](https://docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated.
26
+
*/
27
+
publicfunction__construct($filter) {
28
+
$this->filter = $filter;
29
+
$this->timeout = 1000;
30
+
$this->ensure_https = false;
31
+
}
32
+
33
+
/**
34
+
* Get used HTTP method
35
+
* @return static Used HTTP method
36
+
*/
37
+
publicfunctiongetMethod() {
38
+
return Request::HTTP_DELETE;
39
+
}
40
+
41
+
/**
42
+
* Get URI to the endpoint
43
+
* @return string URI to the endpoint
44
+
*/
45
+
publicfunctiongetPath() {
46
+
return"/{databaseId}/more-items/";
47
+
}
48
+
49
+
/**
50
+
* Get query parameters
51
+
* @return array Values of query parameters (name of parameter => value of the parameter)
52
+
*/
53
+
publicfunctiongetQueryParameters() {
54
+
$params = array();
55
+
return$params;
56
+
}
57
+
58
+
/**
59
+
* Get body parameters
60
+
* @return array Values of body parameters (name of parameter => value of the parameter)
0 commit comments