mixin_bot_sdk_dart 0.2.3
mixin_bot_sdk_dart: ^0.2.3 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);
  }
}