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

Signed-off-by: Jacob Kiers <code@kiers.eu>
2024-02-29 21:41:11 +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(())
}