Expand description
This crate provides an async client as well as helpful types to request and interact with data from TheTVDB API V3.
§Examples
Search for a series by name:
use thetvdb::{Client, params::SearchBy};
let client = Client::new("YOUR_API_KEY").await?;
let results = client.search(SearchBy::Name("Planet Earth")).await?;
println!("{:#?}", results);
Get a series by ID:
let series = client.series(318408).await?;
assert_eq!(
series.series_name,
Some("Planet Earth II".to_string())
);
For more examples check Client
.
Re-exports§
pub use client::Client;