Bankson.fi Node.JS client
API documentation: Official bankson.fi documentation
Installation
npm install --save bankson-js
Usage
;var client = bearerToken: bearerTokenObtainedWithOAuth2; client;
Dynamic bearer token
Because of the expiring nature of bearer tokens you can validate and refresh them before every request by providing a beforeRequest
function that returns
a promise:
;var client = { return ; };
Test mode
To support API requests in test mode, you can either specify test: true
in the constructor options or return test: true
in the promised value in beforeRequest
.
License
MIT License