nielsegberts/rust-monzo


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

License: MIT

Language: Rust

Keywords: api, futures, library, monzo, rust


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 (partially)

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.

Project Statistics

Sourcerank 3
Repository Size 16.6 KB
Stars 1
Forks 0
Watchers 1
Open issues 0
Dependencies 9
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Niels Egberts

Packages Referencing this Repo

monzo
A library that wraps over the Monzo API in a future aware manner.
Latest release 0.0.2 - Updated - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2017-08-24 22:19:38 UTC

Login to resync this repository