2020-09-27 13:17:59 +00:00
|
|
|
use anyhow::Result;
|
2020-10-25 09:03:46 +00:00
|
|
|
use bunq::BunqConfig;
|
2020-10-11 20:21:18 +00:00
|
|
|
|
|
|
|
fn main() -> Result<()> {
|
2020-10-25 08:58:46 +00:00
|
|
|
let cfg = BunqConfig::load()?;
|
2020-09-27 13:17:59 +00:00
|
|
|
|
2020-10-11 20:21:18 +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(())
|
|
|
|
}
|