notifications_controller = client .notifications
NotificationsController
Create Admin Notification
Sends a notification to all admins.
def create_admin_notification (self ,
body )
void
body = AdminNotificationDto ()
result = notifications_controller .create_admin_notification (body )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Get Notification Services
Gets notification services.
def get_notification_services (self )
List of NameIdPair
result = notifications_controller .get_notification_services ()
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Gets notification types.
def get_notification_types (self )
List of NotificationTypeInfo
result = notifications_controller .get_notification_types ()
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Gets a user's notifications.
def get_notifications (self ,
user_id )
Parameter
Type
Tags
Description
user_id
string
Template, Required
-
NotificationResultDto
user_id = 'userId0'
result = notifications_controller .get_notifications (user_id )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Get Notifications Summary
Gets a user's notification summary.
def get_notifications_summary (self ,
user_id )
Parameter
Type
Tags
Description
user_id
string
Template, Required
-
NotificationsSummaryDto
user_id = 'userId0'
result = notifications_controller .get_notifications_summary (user_id )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Sets notifications as read.
def set_read (self ,
user_id )
Parameter
Type
Tags
Description
user_id
string
Template, Required
-
void
user_id = 'userId0'
result = notifications_controller .set_read (user_id )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException
Sets notifications as unread.
def set_unread (self ,
user_id )
Parameter
Type
Tags
Description
user_id
string
Template, Required
-
void
user_id = 'userId0'
result = notifications_controller .set_unread (user_id )
HTTP Status Code
Error Description
Exception Class
401
Unauthorized
APIException
403
Forbidden
APIException