Skip to content

svsticky/cabbage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cabbage

Wrapper around the Koala API for Rust.

Implemented APIs

  • OAuth2

Usage

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();
}

License

MIT or Apache-2.0, at your option

About

Rust wrapper around the Koala API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages