📜  电影预告片用法 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:47.589000             🧑  作者: Mango

代码示例1
$ npx movie-trailer --help

Usage
    $ npx movie-trailer movie     

Options
    --api_key   -k   (optional) Your own TMDB API key: http://developers.themoviedb.org
    --id        -i   Return just the Youtube video ID.
    --language, -l   Specify a language code (eg: 'de_DE').
    --multi,    -m   Returns an array of URLs instead of a single URL.
    --tmdb_id   -t   Specify an explicit TMDB ID.
    --year,     -y   Specify a release year to search.

Example
    $ npx movie-trailer 'Oceans Eleven' -y 1960 -m
    //=> http://path/to/trailer