Add retweeters() method.
authorJoshua Roesslein <jroesslein@gmail.com>
Sat, 17 Aug 2013 07:55:04 +0000 (00:55 -0700)
committerJoshua Roesslein <jroesslein@gmail.com>
Sat, 17 Aug 2013 07:55:04 +0000 (00:55 -0700)
- retweeters() -> statuses/retweeters/ids
- Removed deprecated methods retweeted_by and retweeted_by_ids.

tests/test_api.py
tweepy/api.py

index 7293a2541789b58c1f41afea22f565e9c808dca7..0515738cda5f7079346cff4e8f2ae1021be9f718 100644 (file)
@@ -54,6 +54,9 @@ class TweepyAPITests(TweepyTestCase):
     def testretweets(self):
         self.api.retweets(test_tweet_id)
 
+    def testretweeters(self):
+        self.api.retweeters(test_tweet_id)
+
     def testgetstatus(self):
         self.api.get_status(id=test_tweet_id)
 
index 74188093d77fc78424188cbd0e073a0059a0b988..3466975f8201fd666771c97a048d0525ae562a9c 100644 (file)
@@ -57,14 +57,6 @@ class API(object):
         require_auth = True
     )
 
-    """/statuses/:id/retweeted_by.format"""
-    retweeted_by = bind_api(
-        path = '/statuses/{id}/retweeted_by.json',
-        payload_type = 'status', payload_list = True,
-        allowed_param = ['id', 'count', 'page'],
-        require_auth = True
-    )
-
     """/related_results/show/:id.format"""
     related_results = bind_api(
         path = '/related_results/show/{id}.json',
@@ -73,14 +65,6 @@ class API(object):
         require_auth = False
     )
 
-    """/statuses/:id/retweeted_by/ids.format"""
-    retweeted_by_ids = bind_api(
-        path = '/statuses/{id}/retweeted_by/ids.json',
-        payload_type = 'ids',
-        allowed_param = ['id', 'count', 'page'],
-        require_auth = True
-    )
-
     """ statuses/retweets_of_me """
     retweets_of_me = bind_api(
         path = '/statuses/retweets_of_me.json',
@@ -131,6 +115,12 @@ class API(object):
         require_auth = True
     )
 
+    retweeters = bind_api(
+        path = '/statuses/retweeters/ids.json',
+        payload_type = 'ids',
+        allowed_param = ['id', 'cursor', 'stringify_ids']
+    )
+
     """ users/show """
     get_user = bind_api(
         path = '/users/show.json',