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

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