Skip to main content

Module helpers

Module helpers 

Source
Expand description

Helpers for common OneSignal API usage patterns.

Structs§

CreateNotificationWithRetryOptions
Options for create_notification_with_retry.
CreateNotificationWithRetryResult
Result of create_notification_with_retry: the create response plus whether the server replayed a previously completed request (Idempotent-Replayed response header).

Functions§

create_notification_with_retry
Create a notification with safe, idempotent retries.

Type Aliases§

MessageNotSent
The branch of a POST /notifications 200 response where NO notification was created (id is absent or empty); errors carries the reason. Shares the models::CreateNotificationSuccessResponse shape; see models::CreateNotificationSuccessResponse::as_not_sent.
MessageSent
The branch of a POST /notifications 200 response where a notification was created (id is a non-empty string). Shares the models::CreateNotificationSuccessResponse shape; see models::CreateNotificationSuccessResponse::as_sent.