Skip to content

pbar1/splitwise-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Splitwise SDK for Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages