Skip to content

Commit

Permalink
Require q parameter for API.search_users
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 10, 2021
1 parent d5c34b7 commit 21802f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -481,11 +481,11 @@ def me(self):

@pagination(mode='page')
@payload('user', list=True)
def search_users(self, *args, **kwargs):
def search_users(self, q, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-search
"""
return self.request(
'GET', 'users/search', *args, endpoint_parameters=(
'GET', 'users/search', q, *args, endpoint_parameters=(
'q', 'count', 'page'
), **kwargs
)
Expand Down

0 comments on commit 21802f9

Please sign in to comment.