From: Alejandro Gómez Date: Wed, 5 Sep 2012 15:59:42 +0000 (+0200) Subject: Get retweets by user X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d65d8c2d21eae77678ef219fa3c9f10d128186fd;p=tweepy.git Get retweets by user --- diff --git a/tests.py b/tests.py index 0c93fd6..39d6221 100644 --- 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() diff --git a/tweepy/api.py b/tweepy/api.py index ca834d1..ca8f94e 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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',