asana2 0.3.0

Fluent OpenAPI client for Asana
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(unused_imports)]
use asana::AsanaClient;
use asana::model::*;
#[tokio::main]
async fn main() {
    let client = AsanaClient::from_env();
    let data = WebhookUpdateRequest {
        filters: vec![serde_json::json!({})],
    };
    let webhook_gid = "your webhook gid";
    let response = client
        .update_webhook(data, webhook_gid)
        .opt_fields(&["your opt fields"])
        .opt_pretty(true)
        .await
        .unwrap();
    println!("{:#?}", response);
}