Rename API.retweets_of_me to API.get_retweets_of_me
authorHarmon <Harmon758@gmail.com>
Wed, 9 Jun 2021 05:48:03 +0000 (00:48 -0500)
committerHarmon <Harmon758@gmail.com>
Wed, 9 Jun 2021 05:48:03 +0000 (00:48 -0500)
cassettes/testgetretweetsofme.json [moved from cassettes/testretweetsofme.json with 100% similarity]
docs/api.rst
tests/test_api.py
tweepy/api.py

index d925d4cd42cef33aa850bfcee5f41d4ffb27b624..d620b29fb057764b1d6bd95fb0851d15d99a8eef 100644 (file)
@@ -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`               |
     +------------------------------------------+--------------------------------------+
@@ -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
 
index 6ef1b8ff1d3c0dad94b56a7cb80d4f5a5188cdee..5278a1ea8ed12566e588bb8814e3be7e5567d635 100644 (file)
@@ -54,9 +54,9 @@ class TweepyAPITests(TweepyTestCase):
     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):
index d1476f053bd9c6bc1fda2886f61bf5bb8481f13d..1e4e4a30c699af7dd685cb85bcc6a676e025b15e 100644 (file)
@@ -808,9 +808,9 @@ class API:
 
     @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.