pikd_flutter_api 0.8.0-beta.5 copy "pikd_flutter_api: ^0.8.0-beta.5" to clipboard
pikd_flutter_api: ^0.8.0-beta.5 copied to clipboard

Typed Flutter/Dart client for the PIKD SDK API, including collectibles, challenges, profiles, leaderboards, feeds, authentication, and AR telemetry.

example/pikd_flutter_api_example.dart

import 'package:pikd_flutter_api/api.dart';

Future<void> main() async {
  const sdkKey = String.fromEnvironment('PIKD_SDK_KEY');
  if (sdkKey.isEmpty) {
    throw StateError('Run with -DPIKD_SDK_KEY=your-issued-sdk-key');
  }

  final client = ApiClient(basePath: 'https://api.pikd.app/sdk/v1')
    ..addDefaultHeader('x-pikd-sdk-key', sdkKey);

  final collectibles = await CollectiblesApi(client).getNearbyCollectibles(
        6.3703,
        2.3912,
        radiusM: 250,
      ) ??
      const <Collectible>[];

  for (final collectible in collectibles) {
    print('${collectible.id}: ${collectible.title}');
  }
}
0
likes
110
points
238
downloads

Documentation

API reference

Publisher

verified publisherpikd.app

Weekly Downloads

Typed Flutter/Dart client for the PIKD SDK API, including collectibles, challenges, profiles, leaderboards, feeds, authentication, and AR telemetry.

Topics

#augmented-reality #geospatial #api-client #sdk

License

unknown (license)

Dependencies

collection, http, intl, meta

More

Packages that depend on pikd_flutter_api