tmdb-client
the movie database api for client
note
module compative with the movie database api version 3
the movie database api version 3 document tmdb-api-v3
using for synchronous the movie database with other database. so almost api has removed because it not neccessary
installation
# use node package manager npm install tmdb-client
usage
import module
var TmdbClient = ;
create an instance of tmdb client
// using default apivar tmdbClient = ; // using custom api// using when // - tmdb change api url, not change api params and response// - you want to use your api keyvar api = host: <string> // url to endpoint api key: <string> // api key path: <object> // object contain pair key: value, it is relative path to api;var tmdbClient = api;
find movie with selector
var selector = pageIndex: <number> // index of page [1, 1000]; tmdbClient;
find movie with identity
var id = <number>; tmdb;
count number of movie
// first item is selector and not suport nowtmdb;
find tv with selector
var selector = pageIndex: <number> // index of page [1, 1000]; tmdbClient;
find tv with identity
var id = <number>; tmdb;
count number of tv
// first item is selector and not suport nowtmdb;
find season of tv
var tvId = <number>;var seasonNumber = <number>;tmdb;
find episode of season
var tvId = <number>;var seasonNumber = <number>;var episodeNumber = <number>;tmdb;
next api (pending)
development
# clone form revision system control # require ssh-key, please contact with owner to get one git clone git@github.com:thelordofthetimes/tmdb-client.gitcd tmdb-client # install dependency module npm install # run test npm test # write code and more.. # update revision system control git add .git commit -am '<message>'git push