WebbiSDK
The main entry point for the WebbiOS SDK. Provides unified access to all API modules.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebbiSDK(
options?):WebbiSDK
Initializes a new WebbiSDK instance.
Parameters
Section titled “Parameters”options?
Section titled “options?”Configuration options for the SDK.
Returns
Section titled “Returns”WebbiSDK
Properties
Section titled “Properties”auth:
AuthModule
Authentication module
client
Section titled “client”client:
ApiClient
The core API client instance
dashboard
Section titled “dashboard”dashboard:
DashboardModule
Dashboard module
products
Section titled “products”products:
ProductsModule
Products module
Methods
Section titled “Methods”onAuthError()
Section titled “onAuthError()”onAuthError(
callback):void
Sets a callback to be triggered when an authentication error occurs.
Parameters
Section titled “Parameters”callback
Section titled “callback”() => void
The function to call on auth error.
Returns
Section titled “Returns”void
setToken()
Section titled “setToken()”setToken(
token):void
Updates the authentication token across the entire SDK.
Parameters
Section titled “Parameters”string
The new JWT access token.
Returns
Section titled “Returns”void