Get retweets by user
authorAlejandro Gómez <alejandroogomez@gmail.com>
Wed, 5 Sep 2012 15:59:42 +0000 (17:59 +0200)
committerAlejandro Gómez <alejandroogomez@gmail.com>
Wed, 5 Sep 2012 16:02:46 +0000 (18:02 +0200)
tests.py
tweepy/api.py

index 0c93fd6276cbd5ffdd432094702b869c323c30b1..39d62213998d36fbb6b497f5453b8c0f4bb8b6c1 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -42,6 +42,9 @@ class TweepyAPITests(unittest.TestCase):
     def testretweetedbyme(self):
         self.api.retweeted_by_me()
 
+    def testretweetedbyuser(self):
+        self.api.retweeted_by_user('twitter')
+
     def testretweetedtome(self):
         self.api.retweeted_to_me()
 
index ca834d1bc31ad8a83b41734aba952e3c24f2f6c6..ca8f94ee831dd2881f0a60e2aea560511d995fdd 100644 (file)
@@ -110,6 +110,14 @@ class API(object):
         require_auth = True
     )
 
+    """ statuses/retweeted_by_user """
+    retweeted_by_user = bind_api(
+        path = '/statuses/retweeted_by_user.json',
+        payload_type = 'status', payload_list = True,
+        allowed_param = ['screen_name', 'id', 'since_id', 'max_id', 'count', 'page', 'trim_user', 'include_entities'],
+        require_auth = False
+    )
+
     """ statuses/retweets_of_me """
     retweets_of_me = bind_api(
         path = '/statuses/retweets_of_me.json',