leuchte/number26

此包已被弃用且不再维护。未建议替代包。

number26.eu非官方API的简单PHP包装器

0.0.16 2021-05-22 00:02 UTC

This package is auto-updated.

Last update: 2024-07-13 01:11:20 UTC


README

N26 PHP API包装器

一个简单的包装器,用于读取您的N26银行账户的多个数据。

N26是什么?

N26(以前称为Number26)是专为智能手机开发的欧洲首个银行账户。通过您的N26银行账户、MasterCard®和移动应用程序,您可以从任何地方方便地转账并随时跟踪您的财务状况。使用MoneyBeam,您可以通过短信或电子邮件发送资金,无需输入所有账户详细信息。

安装

$ composer require leuchte/number26

使用方法

use leuchte\Number26\Number26;

require __DIR__ . '/vendor/autoload.php';

$n26 = new Number26('email@number26.eu', 'yourPassword');

// Get recent 20 transactions
$transactions = $n26->getTransactions(['sort' => 'visibleTS', 'dir' => 'ASC', 'offset' => 0, 'limit' => 20]);

// Get a single transaction with the id $id
$transaction = $n26->getTransaction($id);

// Get infos about account, full true for all infos
$me = $n26->getMe($full = false);

// All spaces
$spaces = $n26->getSpaces();

// Space with id $id
$space = $n26->getSpace($id);

// All registered cards
$cards = $n26->getCards();

// Basic account information
$accounts = $n26->getAccounts();

// All saved addresses
$addresses = $n26->getAddresses();

// Address with id $id
$address = $n26->getAddress($id);

// Categories for transactions
$categories = $n26->getCategories();

// All transfer contacts
$contacts = $n26->getContacts();