Added notifications enable/disable methods.
authorJosh Roesslein <jroesslein@gmail.com>
Thu, 23 Jul 2009 00:50:54 +0000 (19:50 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Thu, 23 Jul 2009 00:50:54 +0000 (19:50 -0500)
api.py

diff --git a/api.py b/api.py
index f7c4d57b9e927961f1faecf9c7c3fa2e4542449f..b7c6ba2c0c4c4fd6632188ff9fa5f784dfc0b40b 100644 (file)
--- a/api.py
+++ b/api.py
@@ -261,3 +261,22 @@ class API(object):
       allowed_param = ['id'],
       require_auth = True
   )
+
+  """Enable device notifications"""
+  enable_notifications = bind_api(
+      path = '/notifications/follow.json',
+      method = 'POST',
+      parser = parse_user,
+      allowed_param = ['id', 'user_id', 'screen_name'],
+      require_auth = True
+  )
+
+  """Disable device notifications"""
+  disable_notifications = bind_api(
+      path = '/notifications/leave.json',
+      method = 'POST',
+      parser = parse_user,
+      allowed_param = ['id', 'user_id', 'screen_name'],
+      require_auth = True
+  )
+