Skip to content

Notifications

send_toast_notification

send_toast_notification

Send a nofication message which can be toasted on web page to a user.

base.send_toast_notification(username, msg, toast_type='success')
# toast_type: one of "success", "warning" or "danger"

Example

base.send_toast_notifation(
"aea9e807bcfd4f3481d60294df74f6ee@auth.local",
"error request",
"danger"
)