From d65d8c2d21eae77678ef219fa3c9f10d128186fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20G=C3=B3mez?= Date: Wed, 5 Sep 2012 17:59:42 +0200 Subject: [PATCH] Get retweets by user --- tests.py | 3 +++ tweepy/api.py | 8 ++++++++ 2 files changed, 11 insertions(+) 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', -- 2.25.1