monobank_api 3.0.1 copy "monobank_api: ^3.0.1" to clipboard
monobank_api: ^3.0.1 copied to clipboard

Simplifies interaction with public Monobank API Supports getting currencies and statement info, includes currency and MCC datasets

Monobank API SDK for Dart #

This package is unofficial.

Convenient wrappers to work with Monobank API, contains MCC and currency datasets.

Monobank API documentation: https://api.monobank.ua/docs/

Separate package for Monobank Corp API (Monobank Open API for providers): monobank_api_corp

Usage #

Quick example:

import 'package:monobank_api/monobank_api.dart';

void main() async {
  var client = MonoAPI('token');
  var res = await client.clientInfo();
  var account = res.accounts
      .where((account) => account.balance.currency == Currency.code('USD'))
      .first;
  var statement = account.statement(
    DateTime.now().subtract(Duration(days: 90)), 
    DateTime.now(),
  );

  await for (var item in statement.list(isReverseChronological: true)) {
    print('$item');
  }
}

See other examples in Example.

5
likes
160
points
172
downloads

Publisher

verified publishersominemo.com

Weekly Downloads

Simplifies interaction with public Monobank API Supports getting currencies and statement info, includes currency and MCC datasets

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http

More

Packages that depend on monobank_api