dnb 1.2.1 copy "dnb: ^1.2.1" to clipboard
dnb: ^1.2.1 copied to clipboard

outdated

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(
    clientId: 'YOUR-CLIENT-KEY',
    clientSecret: 'YOUR-CLIENT-SECRET',
    apiKey: 'YOUR-API-KEY',
  );

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

  /// Retrieve token for access to other APIs
  final token = await openBankingClient.getToken(testCustomers.first);
  print(token);

  /// Retrieve the current customer using the token
  final customer = await openBankingClient.getCurrentCustomer();
  print(customer);
}
1
likes
0
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

unknown (LICENSE)

Dependencies

http, meta, sigv4

More

Packages that depend on dnb