From 4e931fd327ef15db41f2cc9c109671b8ecd5c25a Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 22 May 2021 12:34:26 -0500 Subject: [PATCH] Update and improve documentation for API.create_favorite --- tweepy/api.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 2b0a029..77618ba 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -891,12 +891,20 @@ class API: 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-create + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-create """ return self.request( 'POST', 'favorites/create', endpoint_parameters=( -- 2.25.1