There is some example code in examples/Example.hs
. The code assumes that a file named token.txt
containing a valid OAuth token is in the same folder.
To run the example, run cabal repl
(if using a cabal sandbox) or ghci Monzo.hs
(if not). Then load the example into the REPL with :l examples/Example.hs
. Finally, invoke the example with withMonzo token foo
.