tmdb-3
v0.0.9
Published
TMDB api wrapper
Downloads
28
Readme
tmbd
TheMovieDB nodejs API wrapper Really basic, only provides '/search/:type' and '/:type/:id' methods.
For API routes list : http://docs.themoviedb.apiary.io/
var tmdb = require('tmdb-3')('YOUR_API_KEY');
//Searching
tmdb.search('movie', {query: 'Harry Potter', language: 'fr'}, function (err, results) {
//Informations on first ID
tmdb.infos('movie', results.results[0].id, {language: 'fr'}, function (err, results) {
console.log(results);
});
});