#moviemeter
A node wrapper module for the Moviemeter.nl API.
##Installing
npm install moviemeter
Note: You need to request an API key in order to use most functionality of this the API (and this module).
##Basic Usage
Most API calls need an active session key to be passed. You can retrieve one with your API key. See the example below.
var moviemeter = require('moviemeter');
var apiKey = 'MY_SUPER_SECRET_API_KEY';
moviemeter.api_startSession(apiKey, function(err, session) {
var sessionKey = session.session_key;
moviemeter.film_search(sessionKey, 'Wolf of Wall Street', function(err, data) {
console.log(data);
});
moviemeter.api_closeSession(sessionKey, function(err, isClosed) {
});
});
Full List of methods
Session
moviemeter.api_startSession(apiKey, callback)
moviemeter.api_closeSession(sessionKey, callback)
Films
moviemeter.film_search(sessionkey, search, callback)
moviemeter.film_retrieveScore(sessionkey, filmId, callback)
moviemeter.film_retrieveImdb(sessionkey, filmId, callback)
moviemeter.film_retrieveByImdb(sessionkey, imdbCode, callback)
moviemeter.film_retrieveDetails(sessionkey, filmId, callback)
moviemeter.film_retrieveImage(sessionkey, filmId, callback)
moviemeter.film_retrieveReviews(sessionkey, filmId, callback)
moviemeter.film_retrieveReview(sessionkey, filmId, messageId, callback)
moviemeter.film_retrieveCinema(sessionkey, callback)
moviemeter.film_retrieveVideo(sessionkey, callback)
moviemeter.film_retrieveTv(sessionkey, callback)
moviemeter.film_retrieveTvAll(sessionkey, callback)
Directors
moviemeter.director_search(sessionkey, search, callback)
moviemeter.director_retrieveDetails(sessionkey, directorId, callback)
moviemeter.director_retrieveFilms(sessionkey, directorId, callback)
moviemeter.director_retrieveImage(sessionkey, directorId, callback)
System
moviemeter.system_listMethods(callback)
moviemeter.system_methodHelp(methodName, callback)
moviemeter.system_methodSignature(methodName, callback)
License
(The MIT License)
Copyright (c) by Sebastian Van Sande sebastian@vansande.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.