Package com.unblu.sdk.core
Class UnbluWebApiHelper
java.lang.Object
com.unblu.sdk.core.UnbluWebApiHelper
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).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgetOwnNotificationCount(android.content.Context context, UnbluClientConfiguration configuration, android.webkit.ValueCallback<UnbluWebApiHelper.NotificationCountResult> success, 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).
-
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 theUnbluWebApiHelper.NotificationCountResulton success.failure- Callback invoked with an error message on failure.
-