From: Josh Roesslein Date: Thu, 23 Jul 2009 00:50:54 +0000 (-0500) Subject: Added notifications enable/disable methods. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c5ec9aad18ed40e2b30e38cdfa881a0264b0c758;p=tweepy.git Added notifications enable/disable methods. --- 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 + ) +