From 588c34243fe2b12d72f66f0d31312c7452610ec8 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 9 Jun 2021 00:39:09 -0500 Subject: [PATCH] Rename API.retweeters to API.get_retweeter_ids --- cassettes/{testretweeters.json => testgetretweeterids.json} | 0 docs/api.rst | 4 ++-- tests/test_api.py | 6 +++--- tweepy/api.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename cassettes/{testretweeters.json => testgetretweeterids.json} (100%) diff --git a/cassettes/testretweeters.json b/cassettes/testgetretweeterids.json similarity index 100% rename from cassettes/testretweeters.json rename to cassettes/testgetretweeterids.json diff --git a/docs/api.rst b/docs/api.rst index de37c4a..3e29e36 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 diff --git a/tests/test_api.py b/tests/test_api.py index 942e13b..60bdb82 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -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): diff --git a/tweepy/api.py b/tweepy/api.py index 04f1dc3..8dc2944 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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. -- 2.25.1