1. Go to this page and download the library: Download mapmyplan/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/ */
mapmyplan / basiq-sdk-php example snippets
// Used to handle the token session
use MMPBasiq\Session;
// Used to manipulate jobs and connections
use MMPBasiq\Services\ConnectionService;
// Used to manipulate users
use MMPBasiq\Services\UserService;
use MMPBasiq\Session;
$session = new Session("YOUR_API_KEY");
$institutions = $session->getInstitutions();
use MMPBasiq\Session;
$session = new Session("YOUR_API_KEY", "2.0");
$institutions = $session->getInstitutions();
use MMPBasiq\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 MMPBasiq\Session;
use MMPBasiq\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 MMPBasiq\Utilities\FilterBuilder;
$fb = new FilterBuilder();
$fb->eq("connection->id", "conn-id-213-id")->gt("transaction.postDate", "2018-01-01")
$transactions = $user->getTransactions(fb);