UNPKG

bankson-js

Version:
13 lines (10 loc) 387 B
var Bankson = require('./lib') , fs = require('fs'); var client = new Bankson({ baseUrl: 'http://localhost:3001/api/v2', privateKey: fs.readFileSync('3cb85cbd-5505-4725-b601-9cdad247601f_private_rsa.txt'), apiKey: '3cb85cbd-5505-4725-b601-9cdad247601f' }); client.bankAccountStatements.fetch().then(st => { console.log('statements', st); }).catch(err => console.error(err));