| Crates.io | tunein |
| lib.rs | tunein |
| version | 0.1.3 |
| created_at | 2023-02-21 21:00:11.938893+00 |
| updated_at | 2025-01-23 07:09:07.292691+00 |
| description | A simple client to fetch radio stations from TuneIn |
| homepage | |
| repository | https://github.com/tsirysndr/tunein |
| max_upload_size | |
| id | 791051 |
| size | 89,879 |
This is a Rust client library for the TuneIn Radio API.
Add the following to your Cargo.toml:
[dependencies]
tunein = "0.1"
Search for a station:
use tunein::TuneInClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = TuneInClient::new();
let results = client.search("alternativeradio.us").await?;
println!("{}", serde_json::to_string_pretty(&results)?);
Ok(())
}
See the examples directory for more examples.
MIT
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.