Rust api client for demos.tf
  • Rust 83.3%
  • Nix 15.2%
  • Shell 1.5%
Find a file
2020-11-29 14:20:44 +01:00
.github/workflows add github actions ci 2020-11-28 01:36:43 +01:00
src only setup once 2020-11-27 23:49:28 +01:00
tests chat api is now always sorted already 2020-11-28 02:10:47 +01:00
.gitignore init repo 2020-07-18 13:47:36 +02:00
Cargo.toml tls features 2020-11-29 14:20:44 +01:00
LICENSE-APACHE add license files 2020-07-25 14:57:38 +02:00
LICENSE-MIT add license files 2020-07-25 14:57:38 +02:00
README.md add set url endpoint 2020-07-25 14:53:59 +02:00
start_test_server.sh add github actions ci 2020-11-28 01:36:43 +01:00

api-client

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(())
}