Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 730 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 730 Bytes

This is a Go package for accessing data about an Opal card.

GoDoc

It is not anything particularly useful for users (yet); it is currently intended for programmers to use as a building block.

To get it,

go get github.com/dsymonds/opal

You will need to put auth information in $HOME/.opal that looks like

{"Username":"xxx","Password":"yyy"}

Don't forget to chmod 600 $HOME/.opal. I plan to make it easier to pass to this package programmatically.

To do a quick test that will access your card information and print out its balance and recent transactions,

go test -v github.com/dsymonds/opal