tmdb_client 1.8.0

Rust client for The Movie Database (TMDB) API.
Documentation
1
2
3
4
5
6
7
8
9
10
11

use tmdb_client::apis::client::APIClient;

#[test]
fn people_translations_list_should_give_results() {
    let client = APIClient::new_from_env();
    let result = client.people_api().get_person_translations_list(1234, None);
    let translations = result.expect("Error querying people translations");
    assert_eq!(translations.id, Some(1234));
    assert!(translations.translations.expect("Translation list unwrap error").len() > 0);
}