splitwise

Crates.iosplitwise
lib.rssplitwise
version0.3.0
sourcesrc
created_at2022-03-10 08:14:48.050942
updated_at2022-03-12 02:51:12.448223
descriptionSplitwise SDK for Rust
homepage
repositoryhttps://github.com/pbar1/splitwise-rs
max_upload_size
id547442
size121,216
Pierce Bartine (pbar1)

documentation

README

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
Commit count: 54

cargo fmt