4 releases (2 breaking)
0.3.0 | Mar 12, 2022 |
---|---|
0.2.0 | Mar 11, 2022 |
0.1.1 | Mar 11, 2022 |
0.1.0 | Mar 10, 2022 |
#326 in Finance
73KB
1.5K
SLoC
splitwise-rs
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
andResponse
types in favor of function parameters
Dependencies
~7–19MB
~271K SLoC