dart_n26 0.1.2

Dart native js
Flutter Android iOS web

Unofficial dart client for the N26 api. The purpose of this client is only to retrieve data, not to send payments or change settings.

Dart N26 Api Client #

Tests codecov
Unofficial dart client for the N26 api. The purpose of this client is only to retrieve data, not to send payments or change settings.

Authentication #

To get a valid token from the API a 2-factor authentication is required. After calling the 'authorize' method, you will receive a pop-up message on your paired smartphone, which will ask you to tap to confirm that the sign in attempt is legitimate. confirm that and complete the completer passed to the authorize method.

Example Usage #

import 'dart:async';
import 'package:http/http.dart';
import 'package:dart_n26/dart_n26.dart';

void main() async {
  // Replace these variables with your real credentials
  var email = 'YOUR N26 LOGIN EMAIL';
  var password = 'YOUR PASSWORD';

  var client = Client();
  var api = Api(client, Auth(client));

  var completer = Completer();
  completer.complete(Future.delayed(Duration(seconds: 20)));

  await api.authorize(email, password, completer);

  var transactions = await api.getTransactions(
    from: DateTime.now().subtract(Duration(days: 1)),
    to: DateTime.now(),
  );
  var profile = await api.getProfile();
  var accounts = await api.getAccounts();
  var statuses = await api.getStatuses();
  var addresses = await api.getAddresses();
  var cards = await api.getCards();
  var limits = await api.getLimits();
  var spaces = await api.getSpaces();
  var contacts = await api.getContacts();
  var statements = await api.getStatements();
  var statement = await api.getStatement(statements[0].id);
}
1
likes
100
pub points
2%
popularity

Unofficial dart client for the N26 api. The purpose of this client is only to retrieve data, not to send payments or change settings.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

fabian.gehrlicher@outlook.de

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on dart_n26