UnbluWebApiHelper
class UnbluWebApiHelper
Helpers that call the Unblu REST API directly, without initializing the SDK or loading the WebView.
-
The result of
See moregetOwnNotificationCount(with:success:failure:).Declaration
Swift
struct NotificationCountResult -
Sends a GET request to the Unblu backend to fetch the notification count for the person in the current request context (resolved from the configuration’s cookies / SSO token).
Can be called before the SDK is initialized, since it relies only on the provided configuration.
Declaration
Swift
static func getOwnNotificationCount(with configuration: UnbluClientConfiguration, success: @escaping (UnbluWebApiHelper.NotificationCountResult) -> Void, failure: ((String) -> Void)?)Parameters
successClosure called with the decoded
NotificationCountResultupon success.failureOptional closure called with an error message string if the request fails.