radiobrowser-lib-rust/src/bin/test.rs

13 lines
358 B
Rust
Raw Normal View History

2022-04-20 19:51:14 +00:00
use radiobrowser_lib_rust::RadioBrowserAPI;
2022-04-18 23:55:26 +00:00
use std::error::Error;
#[async_std::main]
async fn main() -> Result<(), Box<dyn Error>> {
2022-04-20 19:51:14 +00:00
let mut api = RadioBrowserAPI::new().await?;
let config = api.get_server_config().await?;
println!("{:#?}", config);
let countries = api.get_countries().await?;
println!("{:?}", countries);
2022-04-18 23:55:26 +00:00
Ok(())
}