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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Official library for accessing the [Listen API](https://www.listennotes.com/api) by [Listen Notes](https://www.listennotes.com).
//!
//! # Quick Start Example
//!
//! ```
//! use serde_json::json;
//!
//! #[tokio::main]
//! async fn main() {
//! // Api Key (None => Test API, Some(key) => Production API)
//! let api_key = None;
//!
//! // Create client
//! let client = podcast_api::Client::new(api_key);
//!
//! // Call API
//! match client
//! .typeahead(&json!({
//! "q": "startup",
//! "show_podcasts": 1
//! }))
//! .await
//! {
//! Ok(response) => {
//! println!("Successfully called \"typeahead\" endpoint.");
//! println!("Response Body:");
//! println!("{:?}", response);
//! }
//! Err(err) => {
//! println!("Error calling \"typeahead\" endpoint:");
//! println!("{:?},", err);
//! }
//! };
//! }
//! ```
use Api;
pub use Client;
pub use Response;
pub use Error;
/// Result for API calls from [`Client`]
pub type Result<T> = Result;