#account #delete #org #transaction

firefly-iii-rust

An API wrapper for Firefly III https://www.firefly-iii.org/

6 releases

0.1.5 Jan 27, 2025
0.1.4 Jan 27, 2025

#43 in #delete

Download history 268/week @ 2025-01-11 7/week @ 2025-01-18 194/week @ 2025-01-25 34/week @ 2025-02-01 8/week @ 2025-02-08 12/week @ 2025-02-15 13/week @ 2025-02-22 1/week @ 2025-03-01

259 downloads per month

Custom license

26KB
593 lines

Firefly III Rust API wrapper

This is a uncomplete API wrapper for Firefly III. It is built against the API documentation here.

Usage

The crate exposes every endpoint under a module, currently I have

  • account
  • transaction

There is a generic client that consumes the request types from the endpoint modules:

use firefly_iii_rust::account::{Create, Delete};

let token = std::env::var("FIREFLY_III_ACCESS_TOKEN")
    .expect("FIREFLY_III_ACCESS_TOKEN needs to be set in the environment.");
let base_url = std::env::var("FIREFLY_III_BASE_URL")
    .expect("FIREFLY_III_BASE_URL needs to be set in the environment.");
let client = client::new(&base_url, &token);
let account_create_request = account::Create::default();

let account = client.call(account_create_request).unwrap();

let _ = client.call(account::Delete{id: account.id});

Dependencies

~3.5–5MB
~91K SLoC