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.



DNB Open Banking Client

A Dart client for DNB's API products. (Under development, may change)

GitHub Actions Badge npm (latest) GitHub contributors License Gitmoji

The APIs are currently under development and may change. To use this API, you have to create an application at https://developer.dnb.no.

See examples below.

Usage #

import 'package:dnb/dnb.dart';

void main() async {
  final client = OpenBankingClient('YOUR-API-KEY');

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

  /// Retrieve token for access to other APIs
  final token = await client.getToken('CUSTOMER-ID');

  /// Retrieve the current customer
  final customer = await client.getCurrentCustomer();
}

Development #

First, clone the repo. You will need API keys to run the tests. Make a new app at https://developer.dnb.no.

Do pub get.

Run tests with pub run test.

PRs are appreciated.

License #

MIT © 2019 Arne Molland

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