monobank_api_corp 3.0.0 copy "monobank_api_corp: ^3.0.0" to clipboard
monobank_api_corp: ^3.0.0 copied to clipboard

Server-side library for Monobank Open API for providers (Corp) Relevant signature crypto, etc. Companion library for monobank_api

example/monobank_api_corp_example.dart

import 'dart:io';

import 'package:monobank_api/monobank_api.dart';
import 'package:monobank_api_corp/monobank_api_corp.dart';

void main() async {
  final keyPlainText = File('./keys/priv.key').readAsStringSync();
  final privateKey = MonoCorpRequestKey.getKeyFromPemFile(keyPlainText);

  final mono = MonoCorpAPI(privateKey);
  print((await mono.getCompany()).name);

  final user = mono.user(requestId: 'X-Request-Id');
  final client = await user.clientInfo();

  final statement = client.accounts
      .where((account) => account.balance.currency == Currency.code('USD'))
      .first
      .statement(
        DateTime.now().subtract(Duration(days: 180)),
        DateTime.now(),
      );

  await for (final item in statement.list(isReverseChronological: true)) {
    print('$item');
  }
}
0
likes
160
points
138
downloads

Publisher

verified publishersominemo.com

Weekly Downloads

Server-side library for Monobank Open API for providers (Corp) Relevant signature crypto, etc. Companion library for monobank_api

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

crypto, ecdsa, elliptic, monobank_api

More

Packages that depend on monobank_api_corp