npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

moviemeter

v1.0.3

Published

A simple wrapper for the moviemeter.nl API

Downloads

5

Readme

#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;

	// EXAMPLE: Search a film with terms 'Wolf of Wall Street'
	moviemeter.film_search(sessionKey, 'Wolf of Wall Street', function(err, data) {
      console.log(data); // prints out search results (it's a JSON object)
	});

	// Be nice, and inform Moviemeter.nl that you want to close the session when you're done
	moviemeter.api_closeSession(sessionKey, function(err, isClosed) {
		// ...
	});
});

Full List of methods

Session


// start a session. It will invoked the callback with an array with sessionkey 
// and unix timestamp for session's expiration date
moviemeter.api_startSession(apiKey, callback)

// close a session. The callback will get invoked with a boolean indicating success.
moviemeter.api_closeSession(sessionKey, callback)

Films

// retrieves an array with films
moviemeter.film_search(sessionkey, search, callback)

// retrieves array with information about the current score (average, total, amount of votes)
moviemeter.film_retrieveScore(sessionkey, filmId, callback)

// retrieves array with imdb code, url, score and votes for this film
moviemeter.film_retrieveImdb(sessionkey, filmId, callback)

// retrieves filmId corresponding to the imdb code supplied
moviemeter.film_retrieveByImdb(sessionkey, imdbCode, callback) 

// retrieves array with information about the film
moviemeter.film_retrieveDetails(sessionkey, filmId, callback)

// retrieves array with information and base64 encoded contents of poster and its thumbnail
moviemeter.film_retrieveImage(sessionkey, filmId, callback)

// retrieves summarized reviews for the film
moviemeter.film_retrieveReviews(sessionkey, filmId, callback)

// retrieves full review
moviemeter.film_retrieveReview(sessionkey, filmId, messageId, callback)

// retrieve cinema data
moviemeter.film_retrieveCinema(sessionkey, callback)

// retrieve video data
moviemeter.film_retrieveVideo(sessionkey, callback)

// retrieve TV data
moviemeter.film_retrieveTv(sessionkey, callback)

// retrieve all TV data
moviemeter.film_retrieveTvAll(sessionkey, callback)

Directors

// returns array with directors
moviemeter.director_search(sessionkey, search, callback)

// returns array with director's information
moviemeter.director_retrieveDetails(sessionkey, directorId, callback)

// returns array with director's films
moviemeter.director_retrieveFilms(sessionkey, directorId, callback)

// returns array with information 
// and base64 encoded contents of director image (if exists) and its thumbnail
moviemeter.director_retrieveImage(sessionkey, directorId, callback)

System

// retrieve al ist of methods known to the Moviemeter.nl Web service
moviemeter.system_listMethods(callback)

// get help on a certain web service method
moviemeter.system_methodHelp(methodName, callback)

// get the signature of a method
moviemeter.system_methodSignature(methodName, callback)

License

(The MIT License)

Copyright (c) by Sebastian Van Sande [email protected]

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.