baxcloud_core 0.1.0
baxcloud_core: ^0.1.0 copied to clipboard
Headless BaxCloud foundation — config, HTTP API, tokens, rooms, and analytics metadata for Flutter SDKs and UI kits.
baxcloud_core #
Headless BaxCloud foundation for Flutter SDKs and UI kits.
Features #
BaxConfig—projectId,apiKey, optionalbundleId/appVersion/buildNumberBaxApiClient— tokens, rooms, call invites, push-token registrationBaxRoomSession— room credential session helper- Call models shared by the Calls UI Kit (
BaxCallInvitation,BaxPushPlatform, …) - Analytics device + location metadata on token requests (OS, platform, model, versions, locale, country/continent)
Installation #
dependencies:
baxcloud_core: ^0.1.0
flutter pub get
Quick start #
import 'package:baxcloud_core/baxcloud_core.dart';
final config = BaxConfig(
projectId: 'your-project-id',
apiKey: 'bax_pk_your_client_key',
);
final client = BaxApiClient(config: config);
final creds = await client.createToken(
BaxTokenRequest(
roomName: 'lobby',
userId: 'u1',
userName: 'Ada',
),
);
Prefer a client key (bax_pk_…) from the dashboard.
Documentation #
| Resource | Link |
|---|---|
| UI Kits overview | baxcloud.tech/docs/uikits |
| Calls UI Kit | baxcloud.tech/docs/uikits/calls |
| API authentication | baxcloud.tech/docs/api/authentication |
| Site | baxcloud.tech |
When calling the HTTP API yourself, use https://api.baxcloud.tech.
License #
MIT — see LICENSE.