Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 460 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 460 Bytes

TrueLayer SDK

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);

Contributors

Kevin Diem - kgdiem