Skip to content

Commit eebb0cf

Browse files
committed
Support ListScenarios endpoint
1 parent dbeb284 commit eebb0cf

30 files changed

+323
-227
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ or
1717
```
1818
{
1919
"require": {
20-
"recombee/php-api-client": "^5.0.0"
20+
"recombee/php-api-client": "^5.1.0"
2121
}
2222
}
2323
```

src/RecommApi/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function getBaseUri() {
8686
}
8787

8888
protected function getUserAgent() {
89-
$user_agent = 'recombee-php-api-client/5.0.0';
89+
$user_agent = 'recombee-php-api-client/5.1.0';
9090
if (isset($this->options['serviceName']))
9191
$user_agent .= ' '.($this->options['serviceName']);
9292
return $user_agent;

src/RecommApi/Requests/AddManualReqlSegment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* Adds a new Segment into a Manual ReQL Segmentation.
14-
* 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.
14+
* The new Segment is defined by a [ReQL](https://docs.recombee.com/reql) filter that returns `true` for an item in case that this item belongs to the segment.
1515
*/
1616
class AddManualReqlSegment extends Request {
1717

src/RecommApi/Requests/AddSearchSynonym.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Recombee\RecommApi\Exceptions\UnknownOptionalParameterException;
1111

1212
/**
13-
* Adds a new synonym for the [Search items](https://docs.recombee.com/api.html#search-items).
13+
* Adds a new synonym for the [Search items](https://docs.recombee.com/api#search-items).
1414
* When the `term` is used in the search query, the `synonym` is also used for the full-text search.
1515
* Unless `oneWay=true`, it works also in the opposite way (`synonym` -> `term`).
1616
* An example of a synonym can be `science fiction` for the term `sci-fi`.

src/RecommApi/Requests/CreateAutoReqlSegmentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Recombee\RecommApi\Exceptions\UnknownOptionalParameterException;
1111

1212
/**
13-
* Segment the items using a [ReQL](https://docs.recombee.com/reql.html) expression.
13+
* Segment the items using a [ReQL](https://docs.recombee.com/reql) expression.
1414
* For each item, the expression should return a set that contains IDs of segments to which the item belongs to.
1515
*/
1616
class CreateAutoReqlSegmentation extends Request {

src/RecommApi/Requests/CreateManualReqlSegmentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Recombee\RecommApi\Exceptions\UnknownOptionalParameterException;
1111

1212
/**
13-
* Segment the items using multiple [ReQL](https://docs.recombee.com/reql.html) filters.
13+
* Segment the items using multiple [ReQL](https://docs.recombee.com/reql) filters.
1414
* Use the Add Manual ReQL Items Segment endpoint to create the individual segments.
1515
*/
1616
class CreateManualReqlSegmentation extends Request {

src/RecommApi/Requests/DeleteItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/**
1313
* Deletes an item of the given `itemId` from the catalog.
1414
* 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 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) instead of deleting the item completely.
1616
*/
1717
class DeleteItem extends Request {
1818

src/RecommApi/Requests/DeleteMoreItems.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111

1212
/**
1313
* Deletes all the items that pass the filter.
14-
* 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.
14+
* 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) instead of deleting the item completely.
1515
*/
1616
class DeleteMoreItems extends Request {
1717

1818
/**
19-
* @var string $filter A [ReQL](https://docs.recombee.com/reql.html) expression, which returns `true` for the items that shall be updated.
19+
* @var string $filter A [ReQL](https://docs.recombee.com/reql) expression, which returns `true` for the items that shall be updated.
2020
*/
2121
protected $filter;
2222

2323
/**
2424
* Construct the request
25-
* @param string $filter A [ReQL](https://docs.recombee.com/reql.html) expression, which returns `true` for the items that shall be updated.
25+
* @param string $filter A [ReQL](https://docs.recombee.com/reql) expression, which returns `true` for the items that shall be updated.
2626
*/
2727
public function __construct($filter) {
2828
$this->filter = $filter;

src/RecommApi/Requests/DeleteSearchSynonym.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Recombee\RecommApi\Exceptions\UnknownOptionalParameterException;
1111

1212
/**
13-
* Deletes synonym of the given `id`. This synonym is no longer taken into account in the [Search items](https://docs.recombee.com/api.html#search-items).
13+
* Deletes synonym of the given `id`. This synonym is no longer taken into account in the [Search items](https://docs.recombee.com/api#search-items).
1414
*/
1515
class DeleteSearchSynonym extends Request {
1616

src/RecommApi/Requests/ListItems.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class ListItems extends Request {
1616

1717
/**
18-
* @var string $filter Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned.
18+
* @var string $filter Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned.
1919
*/
2020
protected $filter;
2121
/**
@@ -29,7 +29,7 @@ class ListItems extends Request {
2929
/**
3030
* @var bool $return_properties With `returnProperties=true`, property values of the listed items are returned along with their IDs in a JSON dictionary.
3131
* Example response:
32-
* ```
32+
* ```json
3333
* [
3434
* {
3535
* "itemId": "tv-178",
@@ -52,7 +52,7 @@ class ListItems extends Request {
5252
/**
5353
* @var array $included_properties Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
5454
* Example response for `includedProperties=description,price`:
55-
* ```
55+
* ```json
5656
* [
5757
* {
5858
* "itemId": "tv-178",
@@ -79,7 +79,7 @@ class ListItems extends Request {
7979
* - Allowed parameters:
8080
* - *filter*
8181
* - Type: string
82-
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned.
82+
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned.
8383
* - *count*
8484
* - Type: int
8585
* - Description: The number of items to be listed.
@@ -90,7 +90,7 @@ class ListItems extends Request {
9090
* - Type: bool
9191
* - Description: With `returnProperties=true`, property values of the listed items are returned along with their IDs in a JSON dictionary.
9292
* Example response:
93-
* ```
93+
* ```json
9494
* [
9595
* {
9696
* "itemId": "tv-178",
@@ -112,7 +112,7 @@ class ListItems extends Request {
112112
* - Type: array
113113
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
114114
* Example response for `includedProperties=description,price`:
115-
* ```
115+
* ```json
116116
* [
117117
* {
118118
* "itemId": "tv-178",

0 commit comments

Comments
 (0)