scastiel / node-tmdb

node.js implementation of tmdb v3 API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);	
});

// setting french as default language...
tmdb.setLanguage('fr');
// and resetting to english.
tmdb.resetLanguage();

etc.

All methods live right now (2012-08-08) implemented.

Testing is done by mocha.

See TMDb v3 page about the api

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.

About

node.js implementation of tmdb v3 API

License:MIT License


Languages

Language:JavaScript 100.0%