squarecloud 0.1.1

Async Rust client for the SquareCloud API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use squarecloud::ApiClient;

#[tokio::main]
async fn main() {
    let app_id = std::env::args().nth(1).expect(
        "usage: cargo run --example set_webhook_integration -- <app_id>",
    );
    let client = ApiClient::new();
    let access_token = std::env::var("GITHUB_TOKEN").unwrap();
    let webhook_url = client
        .app(&app_id)
        .set_webhook_integration(access_token)
        .await
        .unwrap();
    println!("{webhook_url}");
}