UNPKG

tmdbv3

Version:

Implementation of TMDb's v3 API

54 lines (32 loc) 1.11 kB
### Dependencies [request] (https://github.com/mikeal/request) ##### Optional for testing [mocha] (https://github.com/visionmedia/mocha) [should] (https://github.com/visionmedia/should.js) ### Usage Install from NPM with: ``` npm install tmdbv3 ``` Then, ``` var tmdb = require('tmdbv3').init(key); tmdb.misc.latest(function(err,res) { console.log(res.title); }); tmdb.movie.info(5, function(err,res) { console.log(res.title); }); tmdb.person.info(109, function(err,res) { console.log(res.name); }); ``` etc. All methods live right now (2012-08-08) implemented. Testing is done by mocha. See [TMDb v3 page about the api](http://help.themoviedb.org/kb/api/about-3) ### TO DO No language support because I don't use it personally, can be added on request or better yet: add it yourself and make a pull request. :) ### Other For TMDb's old v2.1 api, go to [kkarikos repo] (https://raw.github.com/kkarikos/tmdb). kkariko: I used part of your request code here, contact me if you have questions, I can't find a way to contact you.