Fix API.retweet() method.
authorFerenc Szalai <>
Tue, 8 Dec 2009 01:43:34 +0000 (19:43 -0600)
committerJoshua Roesslein <jroesslein@gmail.com>
Tue, 8 Dec 2009 01:43:34 +0000 (19:43 -0600)
Signed-off-by: Joshua Roesslein <jroesslein@gmail.com>
tweepy/api.py

index 98e3b668f02748c471963f2d77aecbfcd1a91a5f..7cc1e996b97ff950c789d79dec51aa6c3057413a 100644 (file)
@@ -36,7 +36,7 @@ class API(object):
         allowed_param = []
     )
 
-    """ statuses/home_timeline [Coming soon] """
+    """ statuses/home_timeline """
     home_timeline = bind_api(
         path = '/statuses/home_timeline.json',
         parser = parse_statuses,
@@ -68,7 +68,7 @@ class API(object):
         require_auth = True
     )
 
-    """ statuses/retweeted_by_me [Coming soon] """
+    """ statuses/retweeted_by_me """
     retweeted_by_me = bind_api(
         path = '/statuses/retweeted_by_me.json',
         parser = parse_statuses,
@@ -99,7 +99,7 @@ class API(object):
         allowed_param = ['id']
     )
 
-    """ statuses/update [Geolocation parameters coming soon] """
+    """ statuses/update """
     update_status = bind_api(
         path = '/statuses/update.json',
         method = 'POST',
@@ -117,16 +117,16 @@ class API(object):
         require_auth = True
     )
 
-    """ statuses/retweet [Coming soon] """
-    retweet = bind_api(
-        path = '/statuses/retweet/id.json',
-        method = 'POST',
-        parser = parse_status,
-        allowed_param = ['id'],
-        require_auth = True
-    )
+    """ statuses/retweet """
+    def retweet(self, id, *args, **kargs):
+        return bind_api(
+            path = '/statuses/retweet/%s.json' % id,
+            method = 'POST',
+            parser = parse_status,
+            require_auth = True
+        )(self, *args, **kargs)
 
-    """ statuses/retweets [Coming soon] """
+    """ statuses/retweets """
     def retweets(self, id, *args, **kargs):
         return bind_api(
             path = '/statuses/retweets/%s.json' % id,