Update and improve documentation for API.destroy_favorite
authorHarmon <Harmon758@gmail.com>
Sat, 22 May 2021 17:41:17 +0000 (12:41 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 22 May 2021 17:41:17 +0000 (12:41 -0500)
tweepy/api.py

index 77618bac1566169fc52e450cda645f506204d174..644d47505b05203db84b9bd260601a3b9aa59250 100644 (file)
@@ -919,12 +919,20 @@ class API:
         Un-favorites the status specified in the ``id`` parameter as the
         authenticating user.
 
-        :param id: |sid|
-        :param include_entities: |include_entities|
+        Parameters
+        ----------
+        id
+            |sid|
+        include_entities
+            |include_entities|
 
-        :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-favorites-destroy
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-destroy
         """
         return self.request(
             'POST', 'favorites/destroy', endpoint_parameters=(