17 releases

0.4.5 Dec 24, 2024
0.4.3 Aug 21, 2022
0.4.2 Jun 28, 2022
0.3.0 Jan 23, 2022
0.1.1 Jul 25, 2020

#515 in Web programming

Download history 11/week @ 2024-09-18 15/week @ 2024-09-25 2/week @ 2024-10-02 1/week @ 2024-10-09 6/week @ 2024-10-30 5/week @ 2024-11-06 1/week @ 2024-11-20 11/week @ 2024-12-04 30/week @ 2024-12-11 149/week @ 2024-12-18 101/week @ 2024-12-25 14/week @ 2025-01-01

300 downloads per month

MIT/Apache

30KB
654 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

~9–24MB
~363K SLoC