Skip to content

barisbalic/crystal-monzo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crystal-monzo

crystal-docs.org

A Crystal client for the Monzo API.

Installation

Add this to your application's shard.yml:

dependencies:
  crystal-monzo:
    github: barisbalic/crystal-monzo

Usage

require "monzo"

client = Monzo.new("SATSUI-NO-HADOU")
client.accounts.each do |account|
  balance = client.balance(account)
  puts balance.spend_today
end

The client API follows the documented API reasonably closely, the only significant divergence being that the "who_am_i" calls are made with client.identity. Only because "who_am_i" really annoyed me.

Development

In order to run the tests you will need to set the MONZO_TOKEN environment variable to a valid API token. You can then run the tests with:

MONZO_TOKEN=magicbeans crystal spec

Contributing

  1. Fork it ( https://github.com/barisbalic/crystal-monzo/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

A simple Crystal wrapper for the Monzo API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages