Struct podcast_api::Client [−][src]
pub struct Client<'a> { /* fields omitted */ }Expand description
Client for accessing Listen Notes API.
Implementations
Creates new Listen API Client.
Uses default HTTP client with 30 second timeouts.
To access production API:
let client = podcast_api::Client::new(Some("YOUR-API-KEY"));To access mock API:
let client = podcast_api::Client::new(None);Creates new Listen API Client with user provided HTTP Client.
Calls GET /search with supplied parameters.
Calls GET /typeahead with supplied parameters.
Calls GET /spellcheck with supplied parameters.
Calls GET /related_searches with supplied parameters.
Calls GET /trending_searches with supplied parameters.
Calls GET /best_podcasts with supplied parameters.
Calls GET /podcasts/{id} with supplied parameters.
Calls POST /podcasts with supplied parameters.
Calls GET /episodes/{id} with supplied parameters.
Calls POST /episodes with supplied parameters.
Calls GET /curated_podcasts/{id} with supplied parameters.
Calls GET /curated_podcasts with supplied parameters.
Calls GET /genres with supplied parameters.
Calls GET /regions with supplied parameters.
Calls GET /languages with supplied parameters.
Calls GET /just_listen with supplied parameters.
Calls GET /podcasts/{id}/recommendations with supplied parameters.
Calls GET /episodes/{id}/recommendations with supplied parameters.
Calls GET /playlists/{id} with supplied parameters.
Calls GET /playlists with supplied parameters.
Calls POST /podcasts/submit with supplied parameters.
Calls DELETE /podcasts/{id} with supplied parameters.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Client<'a>
impl<'a> !UnwindSafe for Client<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more