Add support for retweeted_by_user:
authorJan Schaumann <jschauma@netmeister.org>
Fri, 6 Jul 2012 19:35:02 +0000 (15:35 -0400)
committerJan Schaumann <jschauma@netmeister.org>
Fri, 6 Jul 2012 19:35:02 +0000 (15:35 -0400)
https://dev.twitter.com/docs/api/1/get/statuses/retweeted_by_user

CONTRIBUTORS
setup.py
tests.py
tweepy/__init__.py
tweepy/api.py

index 1232cbca6f89e7397972f52ba648de7e56346508..6812fe3c425dd1b66e055fad403edb404d8c6c7a 100644 (file)
@@ -25,3 +25,4 @@ Wayne Moore
 Will McCutchen
 gilles
 Can Duruk
+Jan Schaumann (@jschauma)
index edd4e3e49a72d868b3c6c04ab5bb01eb8e90c559..83bc79c0b53d571ac4919f40fcc1f4f68341b6c0 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
 from setuptools import setup, find_packages
 
 setup(name="tweepy",
-      version="1.9",
+      version="1.9.1",
       description="Twitter library for python",
       license="MIT",
       author="Joshua Roesslein",
index 4929cd353ca783b31622991a3bd744a58a63b606..e3c45bf0028dbe7e4cd6fb10afda79f629b42a97 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -41,6 +41,10 @@ class TweepyAPITests(unittest.TestCase):
     def testretweetedbyme(self):
         self.api.retweeted_by_me()
 
+    def testretweetedbyuser(self):
+        self.api.retweeted_by_user()
+        self.api.retweeted_bye_user('twitter')
+
     def testretweetedtome(self):
         self.api.retweeted_to_me()
 
index e79bc2c2b041a2fb387cf462af963c8bf966fb99..990c08cfc134ca21268bfc2bb96009266f422c5f 100644 (file)
@@ -5,7 +5,7 @@
 """
 Tweepy Twitter API library
 """
-__version__ = '1.9'
+__version__ = '1.9.1'
 __author__ = 'Joshua Roesslein'
 __license__ = 'MIT'
 
index 7692ce4a6409319dc43f0f0cab2c8ca151261a9e..6fa3ffffb10f3c777c26b85c2b2ef5907b012055 100644 (file)
@@ -70,6 +70,14 @@ class API(object):
         require_auth = True
     )
 
+    """/statuses/retweeted_by_user.format"""
+    retweeted_by_user = bind_api(
+        path = '/statuses/retweeted_by_user.json',
+        payload_type = 'status', payload_list = True,
+        allowed_param = ['screen_name', 'id', 'count', 'since_id',
+                            'max_id', 'page', 'include_entities']
+    )
+
     """/statuses/:id/retweeted_by.format"""
     retweeted_by = bind_api(
         path = '/statuses/{id}/retweeted_by.json',