API Quickstart

Make your first API call

Don't see your language listed? Let us know, and we'll add a guide!

Javascript

Install via NPM:

npm install github:narmitech/banking-client-node --save

The library is hosted at a git repository, (https://github.com/narmitech/banking-client-node).

Here's a good first call to make:

List transactionsjavascript
var BankingClient = require('banking-client');
var config = BankingClient.ApiClient.configuration;
config.basePath = "{{default_base_url}}";
var auth = config.authentications['Application'];
auth.accessToken = '{{default_api_key}}';
auth.secret = '{{default_api_secret}}';
var opts = {};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ', data);
}
};
BankingClient.transactions.list(opts, callback);

Php

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/narmitech/banking-client-php.git"
    }
  ],
  "require": {
    "narmitech/banking-client-php": "*@dev"
  }
}

Then run composer install.

Here's a good first call to make:

List transactionsphp
<?php
require_once(__DIR__ . '/vendor/autoload.php');
date_default_timezone_set('UTC');
Banking\Client\Configuration::getDefaultConfiguration()->setHost('{{default_base_url}}');
Banking\Client\Configuration::getDefaultConfiguration()->setAccessToken('{{default_api_key}}');
Banking\Client\Configuration::getDefaultConfiguration()->setSecret('{{default_api_secret}}');
$api_instance = new Banking\Client\Api\TransactionApi(new \Http\Adapter\Guzzle6\Client());
try {
$result = $api_instance->callList();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransactionApi->callList: ', $e->getMessage(), PHP_EOL;
}
?>