ING api library to fetch any information needed.
- node > v7
- a server running my ing images model
npm i ing-api
const bank = new ING(
{
loginDocument: '11223344X',
birthday: '21/03/1945',
password: 001122
},
'my_user_id',
'http://my.classifierserver.com'
);
ing.auth().then(() => {
// Do api requests here
});
// Async context
await ing.auth();
// Do api requests here
// Async context
const account = await ing.getAccount();
account.name // => francisco
//Async context
const products = await ing.getProducts(account);
products[0].iban // => "ESXXXX..."
// Async context
const transactions = await ing.getTransactionDetail({
offset:0,
limit: 10,
product
});
map(prop('amount'), transactions) // => [-12.95, -56.30, ...]
// Async context
const transaction = await ing.getTransactionDetail({uuid: 'xxx'});
transaction.amount // => -12.95