use serde_json::json;
use waapi_rs::{ak, WaapiClient};
#[tokio::main]
async fn main() {
env_logger::init();
let client = WaapiClient::connect().await.expect("Failed to connect");
let waql = "$ from type Event";
let result = client
.call(
ak::wwise::core::OBJECT_GET,
Some(json!({ "waql": waql })),
Some(json!({ "return": ["id", "name", "type"] })),
)
.await
.expect("WAAPI call failed");
if let Some(map) = result {
println!("Objects: {map:#?}");
}
client.disconnect().await;
}