mirror of
https://github.com/KevinMidboe/moviedb.git
synced 2025-12-07 20:08:51 +00:00
initial commit
This commit is contained in:
21
lib/moviedb.js
Normal file
21
lib/moviedb.js
Normal 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');
|
||||
Reference in New Issue
Block a user