From: Harmon Date: Tue, 25 May 2021 11:12:30 +0000 (-0500) Subject: Update and improve documentation for API.destroy_saved_search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3bd7da744be23ffb5c48b9365b6cc09005d731bf;p=tweepy.git Update and improve documentation for API.destroy_saved_search --- 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)