bunq-rs/examples/list.rs
2020-10-25 10:03:46 +01:00

16 lines
303 B
Rust

use anyhow::Result;
use bunq::BunqConfig;
fn main() -> Result<()> {
let cfg = BunqConfig::load()?;
let cfg = cfg.install()?;
let accs = cfg.monetary_accounts()?;
println!("{:#?}", accs);
let acc = &accs[0];
let ps = cfg.payments(acc)?;
println!("{:#?}", ps);
Ok(())
}