1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! Module to access [the API][apidoc] of [TheTVDB.com][tvdb]
//!
//! [apidoc]: https://api.thetvdb.com/swagger
//! [tvdb]: http://thetvdb.com

extern crate log;

extern crate reqwest;
extern crate url;

extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;

// Module structure
pub mod raw;
pub mod data;
mod error;

// Main public API
pub use raw::{RequestClient, Tvdb};

// Expose error types
pub use error::{TvdbError, TvdbResult};

// Expose data types
pub use data::EpisodeId;