Crates.io | cabbage |
lib.rs | cabbage |
version | 0.1.3 |
source | src |
created_at | 2023-10-24 14:35:32.683747 |
updated_at | 2023-10-31 19:58:23.305993 |
description | Rust wrapper around SV Sticky's Koala API |
homepage | https://svsticky.nl |
repository | https://github.com/svsticky/cabbage |
max_upload_size | |
id | 1012425 |
size | 11,167 |
Wrapper around the Koala API for Rust.
To use this library, you need to register your application in Koala as an OAuth2 client. After that, you can start using the library.
async fn main() {
let client = KoalaApi::new("https://koala.svsticky.nl".to_string()).unwrap();
// For example, the user logged in to your application
let oauth_api = client.oauth_api(ClientConfig::new("my_client_id", "my_client_secret", "https://myapp.svsticky.nl/login"));
let tokens = oauth_api.exchange_login_code(logincode).await.unwrap();
}
MIT or Apache-2.0, at your option