Commit b60ab49c authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Added favorite methods. create/destroy favorites not working yet.

parent 376eacb6
......@@ -229,4 +229,29 @@ class API(object):
require_auth = True
)
"""Get favorites"""
favorites = bind_api(
path = '/favorites.json',
parser = parse_statuses,
allowed_param = ['id', 'page']
)
"""Create favorite"""
create_favorite = bind_api(
path = '/favorites/create.json',
method = 'POST',
parser = parse_status,
allowed_param = ['id'],
require_auth = True
)
"""Destroy favorite"""
destroy_favorite = bind_api(
path = '/favorites/destroy.json',
method = 'DELETE',
parser = parse_status,
allowed_param = ['id'],
require_auth = True
)
api = API('jitterapp', 'josh1987')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment