Rename API.statuses_lookup to API.lookup_statuses
authorHarmon <Harmon758@gmail.com>
Fri, 28 May 2021 11:02:25 +0000 (06:02 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 28 May 2021 11:02:25 +0000 (06:02 -0500)
Resolves #477

docs/api.rst
tweepy/api.py

index f0a9d928b54a9ebf0cd0b3fafc83ad989e66e904..f6be3f6284a307cefde7598b071dbac8f207217d 100644 (file)
@@ -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
 
index 2e273e2f8e2c1e5a8b9a865fcc28fcc726512da2..43529e9b1ef388f8265c7e907262de694f40c564 100644 (file)
@@ -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