From: Harmon Date: Sat, 22 May 2021 17:43:41 +0000 (-0500) Subject: Update and improve documentation for API.destroy_status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dd6a53857d5843b300dd84823c6f0dcfed3e200e;p=tweepy.git Update and improve documentation for API.destroy_status --- diff --git a/tweepy/api.py b/tweepy/api.py index 644d475..70e2a30 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -947,12 +947,20 @@ class API: Destroy the status specified by the ``id`` parameter. The authenticated user must be the author of the status to destroy. - :param id: |sid| - :param trim_user: |trim_user| + Parameters + ---------- + id + |sid| + trim_user + |trim_user| - :rtype: :class:`Status` object + Returns + ------- + :class:`~tweepy.models.Status` - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-destroy-id + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-destroy-id """ return self.request( 'POST', f'statuses/destroy/{id}', endpoint_parameters=(