From 2cae582d864140abcfc2c802ed99d16addd6a84f Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 22 May 2021 07:57:23 -0500 Subject: [PATCH] Update and improve documentation for API.statuses_lookup --- tweepy/api.py | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index f9720e1..72f5543 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -624,17 +624,29 @@ class API: Returns full Tweet objects for up to 100 Tweets per request, specified by the ``id`` parameter. - :param id: A list of Tweet IDs to lookup, up to 100 - :param include_entities: |include_entities| - :param trim_user: |trim_user| - :param map: A boolean indicating whether or not to include Tweets - that cannot be shown. Defaults to False. - :param include_ext_alt_text: |include_ext_alt_text| - :param include_card_uri: |include_card_uri| + Parameters + ---------- + id + A list of Tweet IDs to lookup, up to 100 + include_entities + |include_entities| + trim_user + |trim_user| + map + A boolean indicating whether or not to include Tweets that cannot + be shown. Defaults to False. + include_ext_alt_text + |include_ext_alt_text| + include_card_uri + |include_card_uri| - :rtype: list of :class:`Status` objects + Returns + ------- + :py:class:`List`\ [:class:`~tweepy.models.Status`] - :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-lookup + References + ---------- + https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-lookup """ return self.request( 'GET', 'statuses/lookup', endpoint_parameters=( -- 2.25.1