Skip to content

Commit

Permalink
Rename API.retweets_of_me to API.get_retweets_of_me
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Jun 9, 2021
1 parent 3b3ba24 commit 737bd0b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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 @@ -44,7 +44,7 @@
+------------------------------------------+--------------------------------------+
| `GET statuses/retweets/:id`_ | :meth:`API.get_retweets` |
+------------------------------------------+--------------------------------------+
| `GET statuses/retweets_of_me`_ | :meth:`API.retweets_of_me` |
| `GET statuses/retweets_of_me`_ | :meth:`API.get_retweets_of_me` |
+------------------------------------------+--------------------------------------+
| `GET statuses/show/:id`_ | :meth:`API.get_status` |
+------------------------------------------+--------------------------------------+
Expand Down Expand Up @@ -400,7 +400,7 @@ Post, retrieve, and engage with Tweets

.. automethod:: API.get_retweets

.. automethod:: API.retweets_of_me
.. automethod:: API.get_retweets_of_me

.. automethod:: API.get_status

Expand Down
6 changes: 3 additions & 3 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def testusertimeline(self):
def testmentionstimeline(self):
self.api.mentions_timeline()

@tape.use_cassette('testretweetsofme.json')
def testretweetsofme(self):
self.api.retweets_of_me()
@tape.use_cassette('testgetretweetsofme.json')
def testgetretweetsofme(self):
self.api.get_retweets_of_me()

@tape.use_cassette('testretweetandunretweet.json')
def testretweetandunretweet(self):
Expand Down
6 changes: 3 additions & 3 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,9 +808,9 @@ def get_retweets(self, id, **kwargs):

@pagination(mode='id')
@payload('status', list=True)
def retweets_of_me(self, **kwargs):
"""retweets_of_me(*, count, since_id, max_id, trim_user, \
include_entities, include_user_entities)
def get_retweets_of_me(self, **kwargs):
"""get_retweets_of_me(*, count, since_id, max_id, trim_user, \
include_entities, include_user_entities)
Returns the 20 most recent Tweets of the authenticated user that have
been retweeted by others.
Expand Down

0 comments on commit 737bd0b

Please sign in to comment.