Skip to content

Commit

Permalink
Rename API.retweeters to API.get_retweeter_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jun 9, 2021
1 parent 4f278d2 commit 588c342
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
+------------------------------------------+--------------------------------------+
Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def testretweetandunretweet(self):
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):
Expand Down
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ def get_oembed(self, url, **kwargs):

@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.
Expand Down

0 comments on commit 588c342

Please sign in to comment.