{"id":26471164,"url":"https://github.com/seppevs/moviemeter","last_synced_at":"2025-03-19T20:53:34.884Z","repository":{"id":25878007,"uuid":"29318263","full_name":"seppevs/moviemeter","owner":"seppevs","description":"A node wrapper module for the moviemeter.nl API","archived":false,"fork":false,"pushed_at":"2021-07-28T04:25:50.000Z","size":17,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T10:11:17.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seppevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-15T21:06:58.000Z","updated_at":"2020-07-30T12:27:23.000Z","dependencies_parsed_at":"2022-07-27T05:46:17.398Z","dependency_job_id":null,"html_url":"https://github.com/seppevs/moviemeter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seppevs%2Fmoviemeter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seppevs%2Fmoviemeter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seppevs%2Fmoviemeter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seppevs%2Fmoviemeter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seppevs","download_url":"https://codeload.github.com/seppevs/moviemeter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244506032,"owners_count":20463464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-19T20:53:34.284Z","updated_at":"2025-03-19T20:53:34.872Z","avatar_url":"https://github.com/seppevs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#moviemeter\nA node wrapper module for the [Moviemeter.nl](http://moviemeter.nl) [API](http://wiki.moviemeter.nl/index.php/API).\n\n[![Build Status](http://img.shields.io/travis/seppevs/moviemeter.svg?style=flat)](https://travis-ci.org/seppevs/moviemeter) [![NPM](http://img.shields.io/npm/v/moviemeter.svg?style=flat)](https://www.npmjs.org/package/moviemeter) [![Downloads](http://img.shields.io/npm/dm/moviemeter.svg?style=flat)](https://www.npmjs.org/package/moviemeter) [![Coveralls](http://img.shields.io/coveralls/seppevs/moviemeter.svg?style=flat)](https://coveralls.io/r/seppevs/moviemeter)\n\n##Installing\n```javascript\nnpm install moviemeter\n```\nNote: You need to [request an API key](http://www.moviemeter.nl/site/registerclient/) in order to use most functionality of this the API (and this module).\n\n\n##Basic Usage\n\nMost API calls need an active session key to be passed. You can retrieve one with your API key. See the example below.\n\n```javascript\nvar moviemeter = require('moviemeter');\n\nvar apiKey = 'MY_SUPER_SECRET_API_KEY';\n\nmoviemeter.api_startSession(apiKey, function(err, session) {\n\tvar sessionKey = session.session_key;\n\n\t// EXAMPLE: Search a film with terms 'Wolf of Wall Street'\n\tmoviemeter.film_search(sessionKey, 'Wolf of Wall Street', function(err, data) {\n      console.log(data); // prints out search results (it's a JSON object)\n\t});\n\n\t// Be nice, and inform Moviemeter.nl that you want to close the session when you're done\n\tmoviemeter.api_closeSession(sessionKey, function(err, isClosed) {\n\t\t// ...\n\t});\n});\n```\n\n### Full List of methods\n\n#### Session\n```javascript\n\n// start a session. It will invoked the callback with an array with sessionkey \n// and unix timestamp for session's expiration date\nmoviemeter.api_startSession(apiKey, callback)\n\n// close a session. The callback will get invoked with a boolean indicating success.\nmoviemeter.api_closeSession(sessionKey, callback)\n```\n\n### Films\n```javascript\n// retrieves an array with films\nmoviemeter.film_search(sessionkey, search, callback)\n\n// retrieves array with information about the current score (average, total, amount of votes)\nmoviemeter.film_retrieveScore(sessionkey, filmId, callback)\n\n// retrieves array with imdb code, url, score and votes for this film\nmoviemeter.film_retrieveImdb(sessionkey, filmId, callback)\n\n// retrieves filmId corresponding to the imdb code supplied\nmoviemeter.film_retrieveByImdb(sessionkey, imdbCode, callback) \n\n// retrieves array with information about the film\nmoviemeter.film_retrieveDetails(sessionkey, filmId, callback)\n\n// retrieves array with information and base64 encoded contents of poster and its thumbnail\nmoviemeter.film_retrieveImage(sessionkey, filmId, callback)\n\n// retrieves summarized reviews for the film\nmoviemeter.film_retrieveReviews(sessionkey, filmId, callback)\n\n// retrieves full review\nmoviemeter.film_retrieveReview(sessionkey, filmId, messageId, callback)\n\n// retrieve cinema data\nmoviemeter.film_retrieveCinema(sessionkey, callback)\n\n// retrieve video data\nmoviemeter.film_retrieveVideo(sessionkey, callback)\n\n// retrieve TV data\nmoviemeter.film_retrieveTv(sessionkey, callback)\n\n// retrieve all TV data\nmoviemeter.film_retrieveTvAll(sessionkey, callback)\n```\n\n### Directors\n```javascript\n// returns array with directors\nmoviemeter.director_search(sessionkey, search, callback)\n\n// returns array with director's information\nmoviemeter.director_retrieveDetails(sessionkey, directorId, callback)\n\n// returns array with director's films\nmoviemeter.director_retrieveFilms(sessionkey, directorId, callback)\n\n// returns array with information \n// and base64 encoded contents of director image (if exists) and its thumbnail\nmoviemeter.director_retrieveImage(sessionkey, directorId, callback)\n\n```\n### System\n```javascript\n// retrieve al ist of methods known to the Moviemeter.nl Web service\nmoviemeter.system_listMethods(callback)\n\n// get help on a certain web service method\nmoviemeter.system_methodHelp(methodName, callback)\n\n// get the signature of a method\nmoviemeter.system_methodSignature(methodName, callback)\n\n```\n\n-------\n\n## License\n\n(The MIT License)\n\nCopyright (c) by Sebastian Van Sande \u003csebastian@vansande.org\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseppevs%2Fmoviemeter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseppevs%2Fmoviemeter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseppevs%2Fmoviemeter/lists"}