antinvestor_api_device 1.51.12 copy "antinvestor_api_device: ^1.51.12" to clipboard
antinvestor_api_device: ^1.51.12 copied to clipboard

Dart client library for Ant Investor Device Service - Device management, registration, and tracking

Ant Investor Device API - Dart Client #

pub package

Dart client library for the Ant Investor Device Service. Device management, registration, and tracking

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  antinvestor_device: ^1.0.0

Then run:

dart pub get

Usage #

import 'package:antinvestor_device/antinvestor_device.dart';
import 'package:connectrpc/connect.dart';

void main() async {
  final channel = ClientChannel('https://api.example.com');
  final client = DeviceServiceClient(channel);

  // Use the client...

  await channel.shutdown();
}

Authentication #

All API calls require JWT authentication:

final channel = ClientChannel(
  'https://api.example.com',
  options: ChannelOptions(
    credentials: ChannelCredentials.secure(),
  ),
);

final client = DeviceServiceClient(
  channel,
  interceptors: [
    (options) => options.mergedWith(
      CallOptions(metadata: {
        'authorization': 'Bearer your-jwt-token',
      }),
    ),
  ],
);

API Reference #

For detailed API documentation, see the generated documentation.

Contributing #

Contributions are welcome! Please see the main repository for guidelines.

License #

Copyright 2023-2024 Ant Investor Ltd

Licensed under the Apache License, Version 2.0. See LICENSE for details.

0
likes
120
points
338
downloads

Publisher

verified publisherantinvestor.com

Weekly Downloads

Dart client library for Ant Investor Device Service - Device management, registration, and tracking

Homepage
Repository (GitHub)
View/report issues

Topics

#grpc #protobuf #api-client #device

Documentation

API reference

License

unknown (license)

Dependencies

antinvestor_api_common, connectrpc, fixnum, protobuf

More

Packages that depend on antinvestor_api_device