Rename environment_name API.search_full_archive parameter to label
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:28:27 +0000 (22:28 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:28:27 +0000 (22:28 -0600)
tweepy/api.py

index 44b5cee0e51dc48a47e919c875b207c4aa1156ac..fe4c9111c4b9ba4c6755f7880e0d89f5cee559b1 100644 (file)
@@ -1159,11 +1159,11 @@ class API:
 
     @pagination(mode='next')
     @payload('status', list=True)
-    def search_full_archive(self, environment_name, *args, **kwargs):
+    def search_full_archive(self, label, *args, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/premium-search
         """
         return self.request(
-            'GET', f'tweets/search/fullarchive/{environment_name}', *args,
+            'GET', f'tweets/search/fullarchive/{label}', *args,
             endpoint_parameters=(
                 'query', 'tag', 'fromDate', 'toDate', 'maxResults', 'next'
             ), **kwargs