2019-09-20 08:24:52 +00:00
|
|
|
from .helpers import deprecated_alias
|
|
|
|
|
|
|
|
|
|
|
|
@deprecated_alias('get_notification_types')
|
|
|
|
def notify_get_types(client):
|
|
|
|
return client.call("notify_get_types")
|
2018-12-06 15:56:06 +00:00
|
|
|
|
|
|
|
|
2019-09-20 08:35:27 +00:00
|
|
|
@deprecated_alias('get_notifications')
|
|
|
|
def notify_get_notifications(client,
|
|
|
|
id=None,
|
|
|
|
max=None):
|
2018-12-06 15:56:06 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
Args:
|
|
|
|
id First ID to start fetching from
|
|
|
|
max Maximum number of notifications to return in response
|
|
|
|
|
|
|
|
Return:
|
|
|
|
Notifications array
|
|
|
|
"""
|
|
|
|
|
|
|
|
params = {}
|
|
|
|
if id:
|
|
|
|
params['id'] = id
|
|
|
|
|
|
|
|
if max:
|
|
|
|
params['max'] = max
|
|
|
|
|
2019-09-20 08:35:27 +00:00
|
|
|
return client.call("notify_get_notifications", params)
|