ing-api
ING api library to fetch any information needed.
Prerequisites
- node > v7
- a server running my ing images model
Installation
npm i ing-api
API
new ING(cred, uid, tensorURL) => Ing
const bank = loginDocument: '11223344X' birthday: '21/03/1945' password: 001122 'my_user_id' 'http://my.classifierserver.com';
.auth() => Promise
ing; // Async contextawait ing;// Do api requests here
.getAccount() => Promise<{account}>
// Async contextconst account = await ing;accountname // => francisco
.getProducts(account) => Promise<[{product}]>
//Async contextconst products = await ing;products0iban // => "ESXXXX..."
.getTransactions({offset, limit, product}) => Promise<[transaction]>
// Async contextconst transactions = await ing; // => [-12.95, -56.30, ...]
.getTransaction({uuid: xxx}) => Promise<transaction>
// Async contextconst transaction = await ing;transactionamount // => -12.95