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

index fe4c9111c4b9ba4c6755f7880e0d89f5cee559b1..19db1deba6178cd01f1aa4d78a9b6ef60a6bfd2b 100644 (file)
@@ -1159,11 +1159,11 @@ class API:
 
     @pagination(mode='next')
     @payload('status', list=True)
-    def search_full_archive(self, label, *args, **kwargs):
+    def search_full_archive(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/fullarchive/{label}', *args,
+            'GET', f'tweets/search/fullarchive/{label}', query, *args,
             endpoint_parameters=(
                 'query', 'tag', 'fromDate', 'toDate', 'maxResults', 'next'
             ), **kwargs