From 3bd7da744be23ffb5c48b9365b6cc09005d731bf Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 25 May 2021 06:12:30 -0500 Subject: [PATCH] Update and improve documentation for API.destroy_saved_search --- tweepy/api.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index ec45236..98c5312 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -2861,11 +2861,18 @@ class API: Destroys a saved search for the authenticated user. The search specified by ID must be owned by the authenticating user. - :param id: The ID of the saved search to be deleted. + Parameters + ---------- + id + The ID of the saved search to be deleted. - :rtype: :class:`SavedSearch` object + Returns + ------- + :class:`~tweepy.models.SavedSearch` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id """ return self.request('POST', f'saved_searches/destroy/{id}', **kwargs) -- 2.25.1