kgdiem / true-layer-upstream
A simple SDK for working with TrueLayer APIs
1.0-alpha
2019-02-03 16:04 UTC
Requires
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- filp/whoops: ^2.3
This package is auto-updated.
Last update: 2025-03-15 17:23:57 UTC
README
Start a token request
$tl = new TrueLayer\Connection(
$client_id,
$client_secret,
$redirect_uri
);
header('Location: ' . $tl->getAuthorizartionLink());
Exchange the token and get account info
$token = $tl->getOauthToken($code);
$accounts = (new TrueLayer\Bank\Accounts($tl, $token))
->getAllAccounts();
var_dump($accounts);