From: Harmon Date: Sun, 14 Feb 2021 06:27:58 +0000 (-0600) Subject: Rename saved_search_id API.destroy_saved_search parameter to id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e7b5fac47890bd187eba09787a09ded8f8acaa8f;p=tweepy.git Rename saved_search_id API.destroy_saved_search parameter to id --- 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')