From 7f99421f9b206f1428e776e5c1b1b055c599a498 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sun, 20 Jan 2013 14:17:24 -0800 Subject: [PATCH] Fix create/destory favorites for v1.1. --- tweepy/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 2ffd21b..7d6dc5c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -432,7 +432,7 @@ class API(object): """ favorites/create """ create_favorite = bind_api( - path = '/favorites/create/{id}.json', + path = '/favorites/create.json', method = 'POST', payload_type = 'status', allowed_param = ['id'], @@ -441,8 +441,8 @@ class API(object): """ favorites/destroy """ destroy_favorite = bind_api( - path = '/favorites/destroy/{id}.json', - method = 'DELETE', + path = '/favorites/destroy.json', + method = 'POST', payload_type = 'status', allowed_param = ['id'], require_auth = True -- 2.25.1