Wallogit.com
2017 © Pedro PelĆ”ez
Simple PHP wrapper for the unofficial number26.eu api
A simple wrapper to read several data from your N26 bank account., (*1)
N26 (formerly known as Number26) is Europe's first bank account developed entirely for smartphones. With your N26 bank account, MasterCardĀ® and mobile app, you can conveniently transfer money from anywhere and keep track of your finances at all times. With MoneyBeam you're able to send money via sms or e-mail without the need to enter all the account details., (*2)
Please note that N26 does not provide official documentation for this API interface. Changes are not documented and functions can be removed at any time., (*3)
$ composer require leuchte/number26
```php use leuchte\Number26\Number26;, (*4)
require DIR . '/vendor/autoload.php';, (*5)
$n26 = new Number26('myemail@mydomain.com', 'yourPassword');, (*6)
// Get recent 20 transactions /** * Possible params: * textFilter - Filter by a text * limit - Limit the results * lastId - The last received id. Next batch starts with the id after the lastId * from - Timestamp in miliseconds from where to start * to - Timestamp in miliseconds where to end */ $transactions = $n26->getTransactions(['limit' => 20]);, (*7)
// Get a single transaction with the id $id $transaction = $n26->getTransaction($id);, (*8)
// Get infos about account $me = $n26->getMe();, (*9)
// All registered cards $cards = $n26->getCards();, (*10)
// Basic account information $accounts = $n26->getAccounts();, (*11)
// All saved addresses $addresses = $n26->getAddresses();, (*12)
// Categories for transactions $categories = $n26->getCategories();, (*13)
// All features for a country. Germany (DEU) in this case $countryFeatures = $n26->getCountryFeatures('DEU');, (*14)
// Get api version informations $version = $n26->getVersion();, (*15)
// Get a list of all statements $statements = $n26->getStatements();, (*16)
// Get a specific statement as pdf $statement = $n26->getStatement('statement-2024-12');, (*17)
// Get a csv file with all transactions $n26->setCsvFilename('n26_transactions')->getCsv();, (*18)