Require query parameter for API.search_30_day
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:26:07 +0000 (22:26 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:26:07 +0000 (22:26 -0600)
tweepy/api.py

index 84fa77a2fd0b8703e8bf001c93f9cf08403bbf99..d398047e46c7f3be98ebdb5c1fa701c24c843b90 100644 (file)
@@ -1148,11 +1148,11 @@ class API:
 
     @pagination(mode='next')
     @payload('status', list=True)
-    def search_30_day(self, label, *args, **kwargs):
+    def search_30_day(self, label, query, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/premium-search
         """
         return self.request(
-            'GET', f'tweets/search/30day/{label}', *args,
+            'GET', f'tweets/search/30day/{label}', query, *args,
             endpoint_parameters=(
                 'query', 'tag', 'fromDate', 'toDate', 'maxResults', 'next'
             ), **kwargs