Crates.io | splitwise |
lib.rs | splitwise |
version | 0.3.0 |
source | src |
created_at | 2022-03-10 08:14:48.050942 |
updated_at | 2022-03-12 02:51:12.448223 |
description | Splitwise SDK for Rust |
homepage | |
repository | https://github.com/pbar1/splitwise-rs |
max_upload_size | |
id | 547442 |
size | 121,216 |
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)
}
Request
and Response
types in favor of function parameters