From 4bf62aedb2b117447d4a17216ac1f6937b398678 Mon Sep 17 00:00:00 2001 From: Ferenc Szalai <> Date: Mon, 7 Dec 2009 19:43:34 -0600 Subject: [PATCH] Fix API.retweet() method. Signed-off-by: Joshua Roesslein --- tweepy/api.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 98e3b66..7cc1e99 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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, -- 2.25.1