dnb 1.3.0+1

Dart native
Flutter Android iOS

A platform-agnostic Dart client library for interacting with DNB's Open Banking APIs.

example/main.dart

import 'package:dnb/dnb.dart' as dnb;

void main() async {
  final openBankingClient = dnb.OpenBankingClient('YOUR-API-KEY');

  /// Retrieve all test customers from sandbox
  final testCustomers = await openBankingClient.getTestCustomers();

  /// Retrieve token for access to other APIs
  await openBankingClient
      .getToken(testCustomers.first['ssn'])
      .then((token) => print(token));

  /// Retrieve the current customer using the token
  await openBankingClient
      .getCurrentCustomer()
      .then((customer) => print(customer));
}
1
likes
90
pub points
0%
popularity

Publisher

arnemolland.com

A platform-agnostic Dart client library for interacting with DNB's Open Banking APIs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, http, json_annotation, json_serializable, meta

More

Packages that depend on dnb