1.1.1 • Published 7 years ago

svb-accounts v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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