From 6c66c603c42c609b00f923ea2ce72c1e975c5462 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 18 Feb 2021 22:25:15 -0600 Subject: [PATCH] Rename environment_name API.search_30_day parameter to label --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 3c07cd2..84fa77a 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 -- 2.25.1