commbank

0.0.0 • Public • Published

Which Bank? API

NPM

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    2

Package Sidebar

Install

npm i commbank

Weekly Downloads

0

Version

0.0.0

License

MIT

Last publish

Collaborators

  • rvagg