mirror of
https://codeberg.org/demostf/api-client.git
synced 2026-06-03 08:34:15 +02:00
flake reorg, nix integration testing
This commit is contained in:
parent
06b003ec6e
commit
5cfd70d583
14 changed files with 3221 additions and 145 deletions
|
|
@ -12,12 +12,12 @@ 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(())
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue