Fix create/destory favorites for v1.1.
authorJoshua Roesslein <jroesslein@gmail.com>
Sun, 20 Jan 2013 22:17:24 +0000 (14:17 -0800)
committerJoshua Roesslein <jroesslein@gmail.com>
Sun, 20 Jan 2013 22:17:24 +0000 (14:17 -0800)
tweepy/api.py

index 2ffd21b647b413f4d6c9b9bbc63eb294991524c8..7d6dc5c3ba7a0966d9165c24a53decf603636a33 100644 (file)
@@ -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