From c521d06c7941720b7772330222943c6972035986 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 6 Apr 2021 17:06:23 -0500 Subject: [PATCH] Add API documentation header to match API reference index --- docs/api.rst | 3 +++ tweepy/api.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index b7d819f..9c794e4 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -25,6 +25,9 @@ Get Tweet timelines .. automethod:: API.user_timeline +Post, retrieve, and engage with Tweets +-------------------------------------- + .. method:: API.statuses_lookup(id_, [include_entities], [trim_user], [map_], \ [include_ext_alt_text], [include_card_uri]) diff --git a/tweepy/api.py b/tweepy/api.py index b9ff016..96470cc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -340,6 +340,8 @@ class API: ), **kwargs ) + # Post, retrieve, and engage with Tweets + @payload('status', list=True) def statuses_lookup(self, id, **kwargs): """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-lookup -- 2.25.1