Commit c5ec9aad authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Added notifications enable/disable methods.

parent 7639299e
......@@ -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
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment