dnb 1.3.0+1 copy "dnb: ^1.3.0+1" to clipboard
dnb: ^1.3.0+1 copied to clipboard

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
40
pub points
0%
popularity

Publisher

verified publishermolland.sh

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

equatable, http, json_annotation, json_serializable, meta

More

Packages that depend on dnb