PHP code example of walle89 / swedbank-json
1. Go to this page and download the library: Download walle89/swedbank-json library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
walle89 / swedbank-json example snippets
$auth = new SwedbankJson\Auth\SecurityToken($appData, $username, $challengeResponse);
$bankConn = new SwedbankJson\SwedbankJson($auth);
$accountInfo = $bankConn->accountDetails();
$bankConn->terminate(); // Sign out
echo 'Bank statements
<pre>';
print_r($accountInfo);
$auth = new SwedbankJson\Auth\UnAuth($appData);
$bankConn = new SwedbankJson\SwedbankJson($auth);
$quickBalance = $bankConn->quickBalance($subID);
echo 'Quick balance
<pre>';
print_r($quickBalance);