From b442920ea3a19fc91820f43652f03a57c7727224 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 28 May 2021 06:02:25 -0500 Subject: [PATCH] Rename API.statuses_lookup to API.lookup_statuses Resolves #477 --- docs/api.rst | 4 ++-- tweepy/api.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index f0a9d92..f6be3f6 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -36,7 +36,7 @@ +------------------------------------------+-------------------------------------+ | `GET favorites/list`_ | :meth:`API.favorites` | +------------------------------------------+-------------------------------------+ - | `GET statuses/lookup`_ | :meth:`API.statuses_lookup` | + | `GET statuses/lookup`_ | :meth:`API.lookup_statuses` | +------------------------------------------+-------------------------------------+ | `GET statuses/oembed`_ | :meth:`API.get_oembed` | +------------------------------------------+-------------------------------------+ @@ -392,7 +392,7 @@ Post, retrieve, and engage with Tweets .. automethod:: API.favorites -.. automethod:: API.statuses_lookup +.. automethod:: API.lookup_statuses .. automethod:: API.get_oembed diff --git a/tweepy/api.py b/tweepy/api.py index 2e273e2..43529e9 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -617,8 +617,8 @@ class API: ) @payload('status', list=True) - def statuses_lookup(self, id, **kwargs): - """statuses_lookup(id, *, include_entities, trim_user, map, \ + def lookup_statuses(self, id, **kwargs): + """lookup_statuses(id, *, include_entities, trim_user, map, \ include_ext_alt_text, include_card_uri) Returns full Tweet objects for up to 100 Tweets per request, specified -- 2.25.1