Implemented blocks() and blocks_ids() methods.
authorJosh Roesslein <jroesslein@gmail.com>
Thu, 30 Jul 2009 02:16:04 +0000 (21:16 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Thu, 30 Jul 2009 02:16:04 +0000 (21:16 -0500)
api.py

diff --git a/api.py b/api.py
index 09656e5cd0eb414d018899dd6e397d037f81873b..04df9f3ae6600b9085d3b74ece2853f42b8dfe4e 100644 (file)
--- 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
+  )
+