From: Harmon Date: Sun, 14 Feb 2021 06:25:23 +0000 (-0600) Subject: Require query parameter for API.create_saved_search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c57a4bef48a41165196dcbc0e2013d5718ee52a1;p=tweepy.git Require query parameter for API.create_saved_search --- diff --git a/tweepy/api.py b/tweepy/api.py index 49ab9df..77a9f8e 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -877,11 +877,12 @@ class API: return self.request('GET', f'saved_searches/show/{id}', **kwargs) @payload('saved_search') - def create_saved_search(self, *args, **kwargs): + def create_saved_search(self, query, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-create """ return self.request( - 'POST', 'saved_searches/create', *args, endpoint_parameters=( + 'POST', 'saved_searches/create', query, *args, + endpoint_parameters=( 'query', ), **kwargs )