From b865ed93935258cc0f2bbcc8b9e9fb446fa0ab55 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 28 Jan 2021 20:30:14 -0600 Subject: [PATCH] Replace API.destroy_saved_search id allowed_param with parameter Replace API.destroy_saved_search id allowed_param with saved_search_id parameter --- tweepy/api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 ) -- 2.25.1