From: Joshua Roesslein Date: Sun, 20 Jan 2013 22:17:24 +0000 (-0800) Subject: Fix create/destory favorites for v1.1. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7f99421f9b206f1428e776e5c1b1b055c599a498;p=tweepy.git Fix create/destory favorites for v1.1. --- 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