Skip to content

Commit fcd9b6a

Browse files
committed
Support ListScenarios endpoint
1 parent aac811e commit fcd9b6a

33 files changed

+205
-112
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 Recombee
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

recombee_api_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __get_base_uri(options: dict, region: str) -> str:
9494

9595
@staticmethod
9696
def __get_http_headers(additional_headers: dict = None) -> dict:
97-
headers = {'User-Agent': 'recombee-python-api-client/5.0.2'}
97+
headers = {'User-Agent': 'recombee-python-api-client/5.1.0'}
9898
if additional_headers:
9999
headers.update(additional_headers)
100100
return headers

recombee_api_client/api_requests/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
from recombee_api_client.api_requests.list_segmentations import ListSegmentations
7777
from recombee_api_client.api_requests.get_segmentation import GetSegmentation
7878
from recombee_api_client.api_requests.delete_segmentation import DeleteSegmentation
79-
from recombee_api_client.api_requests.reset_database import ResetDatabase
8079
from recombee_api_client.api_requests.batch import Batch
80+
from recombee_api_client.api_requests.list_scenarios import ListScenarios
81+
from recombee_api_client.api_requests.reset_database import ResetDatabase
8182
from recombee_api_client.api_requests.request import Request

recombee_api_client/api_requests/add_manual_reql_segment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class AddManualReqlSegment(Request):
88
"""
99
Adds a new Segment into a Manual ReQL Segmentation.
1010
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.
11+
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.
1212
1313
Required parameters:
1414

recombee_api_client/api_requests/add_search_synonym.py

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

77
class AddSearchSynonym(Request):
88
"""
9-
Adds a new synonym for the [Search items](https://docs.recombee.com/api.html#search-items).
9+
Adds a new synonym for the [Search items](https://docs.recombee.com/api#search-items).
1010
1111
When the `term` is used in the search query, the `synonym` is also used for the full-text search.
1212
Unless `oneWay=true`, it works also in the opposite way (`synonym` -> `term`).

recombee_api_client/api_requests/create_auto_reql_segmentation.py

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

77
class CreateAutoReqlSegmentation(Request):
88
"""
9-
Segment the items using a [ReQL](https://docs.recombee.com/reql.html) expression.
9+
Segment the items using a [ReQL](https://docs.recombee.com/reql) expression.
1010
1111
For each item, the expression should return a set that contains IDs of segments to which the item belongs to.
1212

recombee_api_client/api_requests/create_manual_reql_segmentation.py

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

77
class CreateManualReqlSegmentation(Request):
88
"""
9-
Segment the items using multiple [ReQL](https://docs.recombee.com/reql.html) filters.
9+
Segment the items using multiple [ReQL](https://docs.recombee.com/reql) filters.
1010
1111
Use the Add Manual ReQL Items Segment endpoint to create the individual segments.
1212

recombee_api_client/api_requests/delete_item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DeleteItem(Request):
1010
1111
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.
1212
13-
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.
13+
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.
1414
1515
Required parameters:
1616

recombee_api_client/api_requests/delete_more_items.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ class DeleteMoreItems(Request):
88
"""
99
Deletes all the items that pass the filter.
1010
11-
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.
11+
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.
1212
Required parameters:
1313
14-
:param filter: A [ReQL](https://docs.recombee.com/reql.html) expression, which returns `true` for the items that shall be updated.
14+
:param filter: A [ReQL](https://docs.recombee.com/reql) expression, which returns `true` for the items that shall be updated.
1515
1616
1717
"""

recombee_api_client/api_requests/delete_search_synonym.py

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

77
class DeleteSearchSynonym(Request):
88
"""
9-
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).
9+
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).
1010
1111
Required parameters:
1212

0 commit comments

Comments
 (0)