Rename API.retweeters to API.get_retweeter_ids
authorHarmon <Harmon758@gmail.com>
Wed, 9 Jun 2021 05:39:09 +0000 (00:39 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 9 Jun 2021 05:39:09 +0000 (00:39 -0500)
cassettes/testgetretweeterids.json [moved from cassettes/testretweeters.json with 100% similarity]
docs/api.rst
tests/test_api.py
tweepy/api.py

index de37c4a54841d1821aa517d00aefefb975859f2b..3e29e366efc31f1fa4927b632eaadd24252d105d 100644 (file)
@@ -40,7 +40,7 @@
     +------------------------------------------+--------------------------------------+
     | `GET statuses/oembed`_                   | :meth:`API.get_oembed`               |
     +------------------------------------------+--------------------------------------+
-    | `GET statuses/retweeters/ids`_           | :meth:`API.retweeters`               |
+    | `GET statuses/retweeters/ids`_           | :meth:`API.get_retweeter_ids`        |
     +------------------------------------------+--------------------------------------+
     | `GET statuses/retweets/:id`_             | :meth:`API.retweets`                 |
     +------------------------------------------+--------------------------------------+
@@ -396,7 +396,7 @@ Post, retrieve, and engage with Tweets
 
 .. automethod:: API.get_oembed
 
-.. automethod:: API.retweeters
+.. automethod:: API.get_retweeter_ids
 
 .. automethod:: API.retweets
 
index 942e13bf2e8c46ec6e42311eec67f6160cb41b3b..60bdb82bb1d39e7c20cb0ea109ace84b95f95242 100644 (file)
@@ -67,9 +67,9 @@ class TweepyAPITests(TweepyTestCase):
     def testretweets(self):
         self.api.retweets(test_tweet_id)
 
-    @tape.use_cassette('testretweeters.json')
-    def testretweeters(self):
-        self.api.retweeters(test_tweet_id)
+    @tape.use_cassette('testgetretweeterids.json')
+    def testgetretweeterids(self):
+        self.api.get_retweeter_ids(test_tweet_id)
 
     @tape.use_cassette('testgetstatus.json')
     def testgetstatus(self):
index 04f1dc3278e8f1f65012183539e1ed82e6095b95..8dc294413ce0ff1d6485f60d4a01652929429905 100644 (file)
@@ -746,8 +746,8 @@ class API:
 
     @pagination(mode='cursor')
     @payload('ids')
-    def retweeters(self, id, **kwargs):
-        """retweeters(id, *, count, cursor, stringify_ids)
+    def get_retweeter_ids(self, id, **kwargs):
+        """get_retweeter_ids(id, *, count, cursor, stringify_ids)
 
         Returns up to 100 user IDs belonging to users who have retweeted the
         Tweet specified by the ``id`` parameter.