Skip to content

Commit

Permalink
Added search_index as required for search_items
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioteula committed Apr 5, 2022
1 parent c0765df commit 96653a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion amazon_paapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def search_items(
) -> models.SearchResult:
"""Searches for items on Amazon based on a search query. At least one of the following
parameters should be specified: ``keywords``, ``actor``, ``artist``, ``author``,
``brand`` or ``title``.
``brand``, ``title``, ``browse_node_id`` or ``search_index``.
Args:
item_count (``int``, optional): Number of items returned. Should be between 1 and 10.
Expand Down
4 changes: 2 additions & 2 deletions amazon_paapi/helpers/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def check_search_args(**kwargs):
def _check_search_mandatory_args(**kwargs):
mandatory_args = [kwargs['keywords'], kwargs['actor'], kwargs['artist'],
kwargs['author'], kwargs['brand'], kwargs['title'],
kwargs['browse_node_id']]
kwargs['browse_node_id'], kwargs['search_index']]
if all(arg is None for arg in mandatory_args):
error_message = ('At least one of the following args should be provided: '
'keywords, actor, artist, author, brand, title or browse_node_id.')
'keywords, actor, artist, author, brand, title, browse_node_id or search_index.')
raise InvalidArgumentException(error_message)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='python-amazon-paapi',
version='4.2.1',
version='4.2.2',
author='Sergio Abad',
author_email='[email protected]',
description='Amazon Product Advertising API 5.0 wrapper for Python',
Expand Down

0 comments on commit 96653a2

Please sign in to comment.