API calls for all endpoints tagged Notifications.
Summary
Functions
List notifications
Delete notification
Mark notification as read
Mark all notifications as read
Get unread notification count
Functions
@spec notifications_get( Tesla.Env.client(), keyword() ) :: {:ok, HookSniffAPI.Model.NotificationListResponse.t()} | {:error, Tesla.Env.t()}
List notifications
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters:page(integer())::per_page(integer()):
Returns
{:ok, HookSniffAPI.Model.NotificationListResponse.t}on success{:error, Tesla.Env.t}on failure
@spec notifications_id_delete(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Delete notification
Parameters
connection(HookSniffAPI.Connection): Connection to serverid(String.t):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec notifications_id_read_put(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Mark notification as read
Parameters
connection(HookSniffAPI.Connection): Connection to serverid(String.t):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec notifications_read_all_put( Tesla.Env.client(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
Mark all notifications as read
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec notifications_unread_count_get( Tesla.Env.client(), keyword() ) :: {:ok, HookSniffAPI.Model.NotificationsUnreadCountGet200Response.t()} | {:error, Tesla.Env.t()}
Get unread notification count
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.NotificationsUnreadCountGet200Response.t}on success{:error, Tesla.Env.t}on failure