svb-accounts
v1.1.1
Published
Silicon Valley Bank API helper
Downloads
1
Readme
svb-accounts
Silicon Valley Bank API helper
Uses SVB-Client library and your API credentials
Usage
const SVBClient = require('svb-client');
const SVBAccounts = require('svb-accounts');
let client = new SVBClient({
API_KEY: '',
HMAC_SECRET: ''
});
let Accounts = new SVBAccounts(client);
Accounts.get(accountID, (err, accountInfo) => {
...
});
Accounts.all((err, accountsInfo) => {
for (var i = 0; i < accountsInfo.length; i++) {
...
}
});
Accounts.transactions(accountID, {}, (err, data) => {
// data.transactions = []
// data.links = {
// first: '',
// next: ''
// }
}
});
// optional filters
filters = {
start_date: '2017-05-05',
end_date: '2017-05-10'
}
Account.transactions(accountID, filters, callback);
Installation
npm install svb-accounts --save