From c5ec9aad18ed40e2b30e38cdfa881a0264b0c758 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Wed, 22 Jul 2009 19:50:54 -0500 Subject: [PATCH] Added notifications enable/disable methods. --- api.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/api.py b/api.py index f7c4d57..b7c6ba2 100644 --- 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 + ) + -- 2.25.1