philetaylor/teller-api

Teller.io 的一个完整的 PHP7+ API 实现

此包的官方仓库似乎已消失,因此该包已被冻结。

dev-master 2017-06-11 15:04 UTC

This package is auto-updated.

Last update: 2023-03-21 19:23:24 UTC


README

使用 Guzzle 作为中间件的 Teller.io 的完整 PHP7+ API 实现

安装

使用 composer 安装

composer require philetaylor/teller-api

使用

<?php

require_once('vendor/autoload.php');

\Teller\Teller::setPersonalAccessToken('YOUR PERSONAL TOKEN');

//echo \Teller\Teller::getPersonalAccessToken();

//var_dump( \Teller\Teller::getAccounts());
\Teller\Teller::setAccount('12312312-9230-4b53-8423-1231b5f0ad0');
//var_dump( \Teller\Teller::getAccount());
//var_dump( \Teller\Teller::getAccount());
//var_dump( \Teller\Teller::getTransactions());
//var_dump( \Teller\Teller::getTransaction('cc918508-1111-4ee9-afa6-a1c615e08262', 'uuid-of-account-that-this-transaction-is-in'));
//var_dump( \Teller\Teller::getDirectDebits());
//var_dump( \Teller\Teller::getDirectDebit('023de905-2222-4a12-869c-e9a0414b8426'));
//var_dump( \Teller\Teller::getPayee('096cf26b-a559-3333-a8f0-84245fc9e137'));
//var_dump( \Teller\Teller::getPayees());
//var_dump( \Teller\Teller::getStandingOrders());