mixin_bot_sdk_dart 0.3.15 copy "mixin_bot_sdk_dart: ^0.3.15" to clipboard
mixin_bot_sdk_dart: ^0.3.15 copied to clipboard

Mixin Messenger API for Dart/Flutter, build decentrialized applications on Mixin

mixin_bot_sdk_dart #

Dart/Flutter SDK for Mixin Bot

Pub package

Usage #

See test/ for variety of examples.

Quick Start

import 'package:mixin_bot_sdk_dart/mixin_bot_sdk_dart.dart';

final client = Client(
      userId: uid,
      sessionId: sid,
      privateKey: private,
);

try {
  final resp = await client.accountApi.getMe();
  print(resp.data.toJson());
} catch (e) {
  if (e is MixinApiError) {
    print(e.error);
  }
}