18 lines
460 B
Rust
18 lines
460 B
Rust
use affluences_api::AffluencesClient;
|
|
use chrono::NaiveDate;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
let site = "ghent-university";
|
|
|
|
// let uuid = "026b8caa-d310-464f-b714-4c21a2cf98ea";
|
|
let mut client = AffluencesClient::new();
|
|
let res = client.site_data(site).await.unwrap();
|
|
|
|
// let res = client
|
|
// .available(uuid, NaiveDate::from_ymd_opt(2023, 5, 11).unwrap(), 1)
|
|
// .await
|
|
// .unwrap();
|
|
println!("{:?}", res);
|
|
}
|