bunq-rs/examples/list.rs

18 lines
305 B
Rust
Raw Normal View History

2020-09-27 13:17:59 +00:00
use anyhow::Result;
2020-10-25 09:03:46 +00:00
use bunq::BunqConfig;
fn main() -> Result<()> {
2020-10-25 08:58:46 +00:00
let cfg = BunqConfig::load()?;
2020-09-27 13:17:59 +00:00
let cfg = cfg.install()?;
let accs = cfg.monetary_accounts()?;
println!("{:#?}", accs);
let acc = &accs[0];
let ps = cfg.payments(acc)?;
println!("{:#?}", ps);
2020-09-27 13:17:59 +00:00
Ok(())
}