Skip to content

A simple client to fetch radio stations from TuneIn

License

Notifications You must be signed in to change notification settings

tsirysndr/tunein

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TuneIn Rust Client Library

License: MIT

This is a Rust client library for the TuneIn Radio API.

🚚 Installation

Add the following to your Cargo.toml:

[dependencies]
tunein = "0.1"

🚀 Usage

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.

✨ Features

  • Search
  • Browse categories
  • Browse stations by category

📝 License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A simple client to fetch radio stations from TuneIn

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages