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 = require('tmdb-client');
create an instance of tmdb client
var tmdbClient = new TmdbClient();
var api = {
host: <string>,
key: <string>,
path: <object>
};
var tmdbClient = new TmdbClient(api);
find movie with selector
var selector = {
pageIndex: <number>
};
tmdbClient.findMovie(selector, function(error, items) {});
find movie with identity
var id = <number>;
tmdb.findMovieById(id, function(error, item) {});
count number of movie
tmdb.movieSize({}, function(error, size) {});
find tv with selector
var selector = {
pageIndex: <number>
};
tmdbClient.findTv(selector, function(error, items) {});
find tv with identity
var id = <number>;
tmdb.findTvById(id, function(error, item) {});
count number of tv
tmdb.tvSize({}, function(error, size) {});
find season of tv
var tvId = <number>;
var seasonNumber = <number>;
tmdb.findTvSeason(tvId, seasonNumber, function(error, season) {});
find episode of season
var tvId = <number>;
var seasonNumber = <number>;
var episodeNumber = <number>;
tmdb.findTvSeason(tvId, seasonNumber, epNumber, function(error, episode) {});
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.git
cd 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