From e7b5fac47890bd187eba09787a09ded8f8acaa8f Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:27:58 -0600 Subject: [PATCH] Rename saved_search_id API.destroy_saved_search parameter to id --- tweepy/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 9f8143e..8b12148 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -887,12 +887,11 @@ class API: ) @payload('saved_search') - def destroy_saved_search(self, saved_search_id, *args, **kwargs): + def destroy_saved_search(self, id, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id """ return self.request( - 'POST', f'saved_searches/destroy/{saved_search_id}', *args, - **kwargs + 'POST', f'saved_searches/destroy/{id}', *args, **kwargs ) @payload('list') -- 2.25.1