Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

ckotzbauer/n26-api

Repository files navigation

N26 API

build NPM

DEPRECATED: This project is not maintained anymore.

Just another api-client for the N26 Bank.

Installation

npm install n26-api

Methods

    authenticate(): Promise<void>;
    getBalance(): Promise<Balance>;
    getInfo(): Promise<PersonalInfo>;
    getStatus(): Promise<Statuses>;
    getAddresses(): Promise<Addresses>;
    getCards(): Promise<Card[]>;
    getLimits(): Promise<Limit[]>;
    getContacts(): Promise<Contact[]>;
    getTransactions(from: Date, to: Date, limit: string): Promise<Transaction[]>;
    getStatements(): Promise<Statement[]>;
    getStatement(id: string): Promise<ReadStream>;
    getSpaces(): Promise<Spaces>;

Example

import { N26 } from "./N26";
import { Balance } from "./contracts/Balance";

const api: N26 = new N26("yourUserName", "yourPassword");
api.authenticate()
    .then(() => api.getBalance())
    .then((balance: Balance) => console.info(balance))
    .catch(console.error);