-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support setting the region of your DB. Added Update / Delete More Ite…
…ms endpoints. Breaking changes: Client constructor: protocol parameter (HTTP/HTTPS) moved to options. Removed deprecated endpoints Item Based Recommendation and User Based Recommendation.
- Loading branch information
1 parent
9ea2b6c
commit 03a4762
Showing
21 changed files
with
305 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
/* | ||
This file is auto-generated, do not edit | ||
*/ | ||
|
||
/** | ||
* DeleteMoreItems request | ||
*/ | ||
namespace Recombee\RecommApi\Requests; | ||
use Recombee\RecommApi\Exceptions\UnknownOptionalParameterException; | ||
|
||
/** | ||
* Delete all the items that pass the filter. | ||
* 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. | ||
*/ | ||
class DeleteMoreItems extends Request { | ||
|
||
/** | ||
* @var string $filter A [ReQL](https://docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated. | ||
*/ | ||
protected $filter; | ||
|
||
/** | ||
* Construct the request | ||
* @param string $filter A [ReQL](https://docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated. | ||
*/ | ||
public function __construct($filter) { | ||
$this->filter = $filter; | ||
$this->timeout = 1000; | ||
$this->ensure_https = false; | ||
} | ||
|
||
/** | ||
* Get used HTTP method | ||
* @return static Used HTTP method | ||
*/ | ||
public function getMethod() { | ||
return Request::HTTP_DELETE; | ||
} | ||
|
||
/** | ||
* Get URI to the endpoint | ||
* @return string URI to the endpoint | ||
*/ | ||
public function getPath() { | ||
return "/{databaseId}/more-items/"; | ||
} | ||
|
||
/** | ||
* Get query parameters | ||
* @return array Values of query parameters (name of parameter => value of the parameter) | ||
*/ | ||
public function getQueryParameters() { | ||
$params = array(); | ||
return $params; | ||
} | ||
|
||
/** | ||
* Get body parameters | ||
* @return array Values of body parameters (name of parameter => value of the parameter) | ||
*/ | ||
public function getBodyParameters() { | ||
$p = array(); | ||
$p['filter'] = $this->filter; | ||
return $p; | ||
} | ||
|
||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.