stackmachine 0.1.0

Async Rust SDK for StackMachine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use stackmachine::{StackMachine, resources::AppsListParams};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = StackMachine::new(std::env::var("STACKMACHINE_API_KEY")?)?;
    let apps = client
        .apps()
        .list(AppsListParams::default())
        .await?
        .collect(100)
        .await?;
    for app in apps {
        println!("{}: {}", app.name, app.url);
    }
    Ok(())
}