#api #sdk #api-bindings #client #workos

workos-rust

unofficial rust sdk for interacting with the workos api

3 unstable releases

0.2.1 Jul 11, 2021
0.2.0 Jul 10, 2021
0.1.0 Jul 8, 2021

#702 in #sdk

MIT/Apache

29KB
616 lines

workos-rust

unofficial rust sdk for interacting with the workos api

Example

use workos_rust::client::Client;

#[async_std::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new(
        None,
        "WORKOS_API_KEY".to_string(),
    );

    let user = client.get_user("directory_user_01F6HYR5T70NBVQ8E3KDTD2YHC").await?;
    
    println!("{:?}", user);
}

Dependencies

~27–42MB
~684K SLoC