From: Harmon Date: Fri, 19 Feb 2021 04:25:15 +0000 (-0600) Subject: Rename environment_name API.search_30_day parameter to label X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c66c603c42c609b00f923ea2ce72c1e975c5462;p=tweepy.git Rename environment_name API.search_30_day parameter to label --- 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