Skip to content

A library that wraps over the Monzo API in a future aware manner.

License

Notifications You must be signed in to change notification settings

nielsegberts/rust-monzo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monzo API for Rust

Build Status

This is a library that wraps over the Monzo API in a future aware manner.

Example usage

extern crate monzo;
extern crate tokio_core;

let mut core = tokio_core::reactor::Core::new().unwrap();
let monzo = monzo::Client::new(&core.handle(), "<access_token>");
let work = monzo.balance("<account_id>".into());
let response = core.run(work).unwrap();
println!("Balance: {} {}", response.balance, response.currency);
println!("Spent today: {}", response.spend_today);

Implemented endpoints

  • accounts
  • balance
  • transactions
  • pots

Send me a pull request if you want to help out!

Tests

Tests use mockito so they need to be ran one at the time:

cargo test -- --test-threads=1

Thanks to

Inspired by citymapper-rs and monzo-rust.

About

A library that wraps over the Monzo API in a future aware manner.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages