/splitwise-rs

Splitwise SDK for Rust

Primary LanguageRustApache License 2.0Apache-2.0

splitwise-rs

CI Docs.rs Crates.io Minimum Supported Rust Version

Splitwise SDK for Rust

Usage

The default Splitwise client reads an API key from the environment variable SPLITWISE_API_KEY. API keys can be generated in the Splitwise developer portal.

#[tokio::main]
async fn main() {
    let client = splitwise::client::Client::default();

    let user = client.users().get_current_user().await.unwrap();

    println!("Current user: {:#?}", user)
}

Roadmap

  • Support for sync and async via crate features
  • Make HTTP client generic, with default implementations
  • Handle Splitwise API versioning
  • More robust error handling
  • Cut down on some Request and Response types in favor of function parameters