From: Josh Roesslein Date: Thu, 30 Jul 2009 02:16:04 +0000 (-0500) Subject: Implemented blocks() and blocks_ids() methods. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e5eed1568699b792fffe45c52a0b5f63a721c45b;p=tweepy.git Implemented blocks() and blocks_ids() methods. --- 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 + ) +