0.0.0 • Published 11 years ago
commbank v0.0.0
Which Bank? API
A simple (but incomplete) API to a certain Australian bank.
Use as an API or, install with npm install commbank -g
and you get a CLI, commbank
that will print some basic account summary info for you, including some recent transactions.
const commbank = require('commbank')
var clientNumber = 1235678
, password = 7890
commbank.login(clientNumber, password, function (err, data) {
if (err) throw err
data.AccountGroups.forEach(function (group) {
group.ListAccount.forEach(function (account) {
console.log('\n%s (%s):', account.AccountName, account.AccountNumber)
console.log('\tBalance: %s', account.Balance)
console.log('\tAvailable Funds: %s', account.AvailableFunds)
})
})
})
License
commbank is Copyright (c) 2013 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
0.0.0
11 years ago