Rust api client for demos.tf
  • Rust 83.3%
  • Nix 15.2%
  • Shell 1.5%
Find a file
2022-08-21 15:23:15 +02:00
.github/workflows add download convenience method 2022-05-09 22:53:47 +02:00
src add support for new before/after_id filters 2022-06-28 20:15:33 +02:00
tests better error for setting url of unknown demo 2022-05-15 16:06:31 +02:00
.envrc flake 2022-08-21 15:23:15 +02:00
.gitignore flake 2022-08-21 15:23:15 +02:00
Cargo.toml add support for new before/after_id filters 2022-06-28 20:15:33 +02:00
flake.lock flake 2022-08-21 15:23:15 +02:00
flake.nix flake 2022-08-21 15:23:15 +02: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 badge 2020-11-30 20:39:39 +01:00
start_test_server.sh add download convenience method 2022-05-09 22:53:47 +02:00

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