Class UnbluWebApiHelper

java.lang.Object
com.unblu.sdk.core.UnbluWebApiHelper

public class UnbluWebApiHelper extends Object
Helper providing direct Unblu web API calls that can be made before the SDK is initialized, authenticating with the data held in UnbluClientConfiguration (base URL, API key, entry path, cookies and optional SSO token).
  • Method Details

    • getOwnNotificationCount

      public static void getOwnNotificationCount(@NonNull android.content.Context context, @NonNull UnbluClientConfiguration configuration, @NonNull android.webkit.ValueCallback<UnbluWebApiHelper.NotificationCountResult> success, @NonNull android.webkit.ValueCallback<String> failure)
      Fetches 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.
      Parameters:
      context - Android context.
      configuration - The Unblu client configuration providing base URL, entry path, API key, cookies and optional SSO token.
      success - Callback invoked with the UnbluWebApiHelper.NotificationCountResult on success.
      failure - Callback invoked with an error message on failure.