From e5eed1568699b792fffe45c52a0b5f63a721c45b Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Wed, 29 Jul 2009 21:16:04 -0500 Subject: [PATCH] Implemented blocks() and blocks_ids() methods. --- api.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index 09656e5..04df9f3 100644 --- a/api.py +++ b/api.py @@ -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 + ) + -- 2.25.1