Which bank? A simple (but incomplete) API and CLI for a certain Australian bank.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintrc
LICENSE
README.md
bin.js
commbank.js
package.json

README.md

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.