15 unstable releases (3 breaking)

0.4.3 Aug 21, 2022
0.4.2 Jun 28, 2022
0.4.1 May 15, 2022
0.3.0 Jan 23, 2022
0.1.1 Jul 25, 2020

#1045 in Web programming

Download history 7/week @ 2024-04-20 5/week @ 2024-04-27 3/week @ 2024-05-11 3/week @ 2024-05-18 2/week @ 2024-05-25 5/week @ 2024-06-01 8/week @ 2024-06-08 5/week @ 2024-06-15 3/week @ 2024-06-22 3/week @ 2024-06-29 134/week @ 2024-07-27

136 downloads per month

MIT/Apache

29KB
658 lines

api-client

Build Status

Rust api client for demos.tf

Example

use demostf_client::{ListOrder, ListParams, ApiClient};

#[tokio::main]
async fn main() -> Result<(), demostf_client::Error> {
    let client = ApiClient::new();
    
    let demos = client.list(ListParams::default().with_order(ListOrder::Ascending), 1).await?;
    
    for demo in demos {
        println!("{}: {}", demo.id, demo.name);
    }
    Ok(())
}

Dependencies

~7–25MB
~363K SLoC