Require q parameter for API.search_users
authorHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 19:18:49 +0000 (13:18 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 19:18:49 +0000 (13:18 -0600)
tweepy/api.py

index 2d5d1ddc8af59357b8ddcbf04aa5cf4cec8e8672..9fb1715cafd45d03ecb80910cb0456384dd1d2fb 100644 (file)
@@ -481,11 +481,11 @@ class API:
 
     @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
         )