From: Harmon Date: Fri, 19 Feb 2021 04:28:27 +0000 (-0600) Subject: Rename environment_name API.search_full_archive parameter to label X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=295bfe45ed056e94fc7055eb83aea9fcac5dddcb;p=tweepy.git Rename environment_name API.search_full_archive parameter to label --- diff --git a/tweepy/api.py b/tweepy/api.py index 44b5cee..fe4c911 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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