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

Implemented blocks() and blocks_ids() methods.

parent 204afa99
......@@ -226,7 +226,7 @@ class API(object):
require_auth = True
)
# todo: add support for changing profile and background images
# TODO: add support for changing profile and background images
"""Update profile"""
update_profile = bind_api(
......@@ -311,3 +311,17 @@ class API(object):
return False
return True
"""Get list of users that are blocked"""
blocks = bind_api(
path = '/blocks/blocking.json',
parser = parse_users,
allowed_param = ['page'],
require_auth = True
)
blocks_ids = bind_api(
path = '/blocks/blocking/ids.json',
parser = parse_ids,
require_auth = True
)
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