1. Go to this page and download the library: Download basiqio/basiq-sdk-php 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/ */
basiqio / basiq-sdk-php example snippets
// Used to handle the token session
use Basiq\Session;
// Used to manipulate jobs and connections
use Basiq\Services\ConnectionService;
// Used to manipulate users
use Basiq\Services\UserService;
use Basiq\Session;
$session = new Session("YOUR_API_KEY");
$institutions = $session->getInstitutions();
use Basiq\Session;
$session = new Session("YOUR_API_KEY", "2.0");
$institutions = $session->getInstitutions();
use Basiq\Session;
$session = new Session("YOUR_API_KEY");
$user = $session->forUser($userId);
$job = $user->createConnection($institutionId, $userId, $password[, $securityCode, $secondaryLoginId]);
// Poll our server to wait for the credentials step to be evaluated
$connection = job->waitForCredentials(1000, 60);
use Basiq\Session;
use Basiq\Utilities\FilterBuilder;
$session = new Session("YOUR_API_KEY");
$user = $session->forUser($userId);
$fb = new FilterBuilder();
$fb->eq("connection->id", "conn-id-213-id");
$transactions = $user->getTransactions($fb);
while ($transactions->next()) {
var_dump("Next transactions len:", len(transactions.Data))
}
public $response;
public $statusCode;
public $message;
use Basiq\Utilities\FilterBuilder;
$fb = new FilterBuilder();
$fb->eq("connection->id", "conn-id-213-id")->gt("transaction.postDate", "2018-01-01")
$transactions = $user->getTransactions(fb);