bunq-rs/examples/list.rs
Jacob Kiers 3ea95e9ec9 Refactor to use one module per concept
This makes code navigation easier.

Signed-off-by: Jacob Kiers <code@kiers.eu>
2024-03-01 07:09:28 +01:00

18 lines
305 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(())
}