Splitwise SDK for Rust
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)
}
- 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
andResponse
types in favor of function parameters