tmdb-async 0.7.2

The Movie Database (TMDb) API for async Rust
Documentation
1
2
3
4
5
6
7
8
9
use tmdb_async::Client;

#[tokio::main]
async fn main() {
	let client = Client::new(env!("TMDB_API_KEY").to_string());
	let search_result = client.movie_search("Interstellar", Some(2014)).await.unwrap();
	let movie = client.movie_by_id(search_result.results()[0].id(), false, false).await.unwrap();
	println!("{:#?}", movie);
}