Skip to content

Commit 96653a2

Browse files
committed
Added search_index as required for search_items
1 parent c0765df commit 96653a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

amazon_paapi/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def search_items(
131131
) -> models.SearchResult:
132132
"""Searches for items on Amazon based on a search query. At least one of the following
133133
parameters should be specified: ``keywords``, ``actor``, ``artist``, ``author``,
134-
``brand`` or ``title``.
134+
``brand``, ``title``, ``browse_node_id`` or ``search_index``.
135135
136136
Args:
137137
item_count (``int``, optional): Number of items returned. Should be between 1 and 10.

amazon_paapi/helpers/arguments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ def check_search_args(**kwargs):
3232
def _check_search_mandatory_args(**kwargs):
3333
mandatory_args = [kwargs['keywords'], kwargs['actor'], kwargs['artist'],
3434
kwargs['author'], kwargs['brand'], kwargs['title'],
35-
kwargs['browse_node_id']]
35+
kwargs['browse_node_id'], kwargs['search_index']]
3636
if all(arg is None for arg in mandatory_args):
3737
error_message = ('At least one of the following args should be provided: '
38-
'keywords, actor, artist, author, brand, title or browse_node_id.')
38+
'keywords, actor, artist, author, brand, title, browse_node_id or search_index.')
3939
raise InvalidArgumentException(error_message)
4040

4141

setup.py

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

66
setuptools.setup(
77
name='python-amazon-paapi',
8-
version='4.2.1',
8+
version='4.2.2',
99
author='Sergio Abad',
1010
author_email='sergio.abad@bytelix.com',
1111
description='Amazon Product Advertising API 5.0 wrapper for Python',

0 commit comments

Comments
 (0)