| Crates.io | thetvdb |
| lib.rs | thetvdb |
| version | 0.1.0-beta.2 |
| created_at | 2020-01-23 13:24:31.951507+00 |
| updated_at | 2020-02-11 18:52:22.151285+00 |
| description | TheTVDB API async client |
| homepage | |
| repository | https://github.com/roignpar/thetvdb |
| max_upload_size | |
| id | 201253 |
| size | 180,975 |
TheTVDB API V3 Rust async client.
Minimum Rust version: 1.40.0
In order to use this client you will need an API key. To create a new API key log in and go to the API Keys page.
NOTE: Because it depends on reqwest, thetvdb currently only works with tokio.
Add with cargo edit:
cargo add thetvdb
or add to Cargo.toml:
[dependencies]
thetvdb = "0.1.0-beta.2"
Search series by title:
use thetvdb::{Client, params::SearchBy};
let client = Client::new("YOUR_API_KEY").await?;
let search_results = client.search(SearchBy::Name("Planet Earth")).await?;
For more examples check the documentation.
POST /login (used internally; cannot be manually requested)GET /episodes/{id}GET /languagesGET /languages/{id}GET /movies/{id}GET /movieupdatesGET /search/seriesGET /series/{id}HEAD /series/{id}GET /series/{id}/actorsGET /series/{id}/episodesGET /series/{id}/episodes/queryGET /series/{id}/episodes/summaryGET /series/{id}/filterGET /series/{id}/imagesGET /series/{id}/images/queryGET /series/{id}/images/query/paramsGET /updated/queryexport THETVDB_APIKEY=<API_KEY>
cargo t --test client
Licensed under either of Apache License, Version 2.0 or MIT at your option.