Mobile SDK Quick Start
Get started with the Financbase Mobile SDK in 5 minutes
Step 1: Install the SDK
Step 2: Initialize the SDK
Initialize the SDK in your app's startup code (typically in AppDelegate for iOS or Application class for Android).
// iOS
import FinancbaseSDK
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FinancbaseSDK.configure(apiKey: "YOUR_API_KEY")
return true
}
}
// Android
import com.financbase.sdk.FinancbaseSDK
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
FinancbaseSDK.configure(this, apiKey = "YOUR_API_KEY")
}
}Step 3: Make Your First API Call
Test the SDK by fetching account information.
iOS (Swift)
import FinancbaseSDK
Task {
do {
let account = try await FinancbaseSDK.shared.getAccount()
print("Account: \(account.name)")
} catch {
print("Error: \(error)")
}
}Android (Kotlin)
import com.financbase.sdk.FinancbaseSDK
import kotlinx.coroutines.launch
lifecycleScope.launch {
try {
val account = FinancbaseSDK.instance.getAccount()
Log.d("Financbase", "Account: ${account.name}")
} catch (e: Exception) {
Log.e("Financbase", "Error", e)
}
}Next Steps
Now that you've made your first API call, explore these features:
Transactions
Create, read, and manage financial transactions
Accounts
Manage accounts and balances
Reports
Generate financial reports and analytics
Webhooks
Receive real-time event notifications