From: Harmon Date: Fri, 29 Jan 2021 02:30:14 +0000 (-0600) Subject: Replace API.destroy_saved_search id allowed_param with parameter X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b865ed93935258cc0f2bbcc8b9e9fb446fa0ab55;p=tweepy.git Replace API.destroy_saved_search id allowed_param with parameter Replace API.destroy_saved_search id allowed_param with saved_search_id parameter --- diff --git a/tweepy/api.py b/tweepy/api.py index 3ad43d2..e958d81 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -881,16 +881,15 @@ class API: require_auth=True, **kwargs ) - def destroy_saved_search(self, *args, **kwargs): + def destroy_saved_search(self, saved_search_id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id - :allowed_param: 'id' + :allowed_param: """ return bind_api( *args, api=self, - path='/saved_searches/destroy/{id}.json', + path=f'/saved_searches/destroy/{saved_search_id}.json', method='POST', payload_type='saved_search', - allowed_param=['id'], require_auth=True, **kwargs )