[−][src]Crate thetvdb
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; |
Modules
client | TheTVDB API async client. |
error | Errors that may occur while using this crate. |
language | Language related types and impls. |
params | Parameters used by |
response | Types used to deserialize and work with data received from the API. |