initial commit

This commit is contained in:
Dan Zajdband
2012-05-16 20:32:25 -03:00
commit a951072182
8 changed files with 268 additions and 0 deletions

21
lib/moviedb.js Normal file
View File

@@ -0,0 +1,21 @@
/*
* Exports the constructor
*/
module.exports = function MovieDB(api_key){
if(api_key) this.api_key = api_key;
else throw new Error('Bad api key');
};
/*
* API auth
*/
require('./auth');
/*
* API request
*/
require('./request');