Skip to Content
SDKsGoNotifications

Notifications

In-app (and email/SMS) notifications for account events — send confirmations, top-up confirmations, and so on.

GroupMethods
NotificationsListNotifications, UnreadNotificationCount, MarkNotificationRead, MarkAllNotificationsRead
notifs, err := client.ListNotifications(ctx, sendafrica.PageQuery{Page: 1, PerPage: 25}) count, err := client.UnreadNotificationCount(ctx) fmt.Println("unread:", count.Count) err = client.MarkNotificationRead(ctx, notifs.Items[0].ID) err = client.MarkAllNotificationsRead(ctx)

Use UnreadNotificationCount for a badge counter on the dashboard and ListNotifications for the feed. Delivery reports arrive out-of-band via webhooks — notifications are for account-level events.

Last updated on