From: Harmon Date: Fri, 19 Feb 2021 04:26:07 +0000 (-0600) Subject: Require query parameter for API.search_30_day X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=52874b72cd16e3984ce99710824d07608c329024;p=tweepy.git Require query parameter for API.search_30_day --- diff --git a/tweepy/api.py b/tweepy/api.py index 84fa77a..d398047 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, label, *args, **kwargs): + def search_30_day(self, label, query, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/premium-search """ return self.request( - 'GET', f'tweets/search/30day/{label}', *args, + 'GET', f'tweets/search/30day/{label}', query, *args, endpoint_parameters=( 'query', 'tag', 'fromDate', 'toDate', 'maxResults', 'next' ), **kwargs