Git Product home page Git Product logo

node-myapifilms's Introduction

#MyApiFilms NodeJS module This module queries myapifilms.com and allows you to retrieve infos about films and actors via IMDB or TMDB

Overview

##Install

npm install myapifilms

##Usage

var MyApiFilms = require('myapifilms');

/* 	
	IMDB APIS
*/

MyApiFilms.getById(IMDBID, parameters, callback); //Get movie / tv serie / videogame by ID
MyApiFilms.searchByTitle(TITLE, parameters, callback); //Search for movie / tv serie / videogame by TITLE
MyApiFilms.getActById(ACTID, parameters, callback); //Get actor data by ID
MyApiFilms.searchActByName(ACTORNAME, parameters, callback); //Search actor by NAME

/* 	
	TMDB APIS
*/
MyApiFilms.tmdbSeachByTitle(TITLE, parameters, callback); //Search Movie by TITLE
MyApiFilms.tmdbSearchById(IMDBID, parameters, callback); // Search Movie by ID

callback = function(data)
{
	//data will be an object containing the results
}

##Parameters Exhaustive list of parameters and usage is available here for IMDB and here for TMDB

###getById

parameters = {
	"actors": "N",
	"actorActress": 0,
	"actorTrivia": 0,
	"aka": 0,
	"awards": 0,
	"bornDied": 0,
	"business": 0,
	"filmography": 0,
	"lang": "en-us",
	"movieTrivia": 0,
	"seasons": 0,
	"seasonYear": 0,
	"starSign": 0,
	"technical": 0,
	"trailer": 0,
	"uniqueName": 0
};

###searchByTitle

parameters = {
	"actors": "N",
	"actorActress": 0,
	"actorTrivia": 0,
	"aka": 0,
	"awards": 0,
	"bornDied": 0,
	"business": 0,
	"exactFilter": 0,
	"filmography": 0,
	"filter": "N",
	"lang": "en-us",
	"limit": "1",
	"movieTrivia": 0,
	"offset": 0,
	"seasons": 0,
	"seasonYear": 0,
	"starSign": 0,
	"technical": 0,
	"trailer": 0,
	"uniqueName": 0,
	"year": ""
};

###getActById

parameters = {
	"actorActress": 0,
	"actorTrivia": 0,
	"bornDied": 0,
	"filmography": 0,
	"lang": "en-us",
	"starSign": 0,
	"uniqueName": 0
};

###searchActByName

parameters = {
	"actorActress": 0,
	"actorTrivia": 0,
	"bornDied": 0,
	"exactFilter": 0,
	"filmography": 0,
	"lang": "en-us",
	"limit": 1,
	"offset": 0,
	"starSign": 0,
	"uniqueName": 0
};

###tmdbSeachByTitle

parameters = {
	"year": 0,
	"language": "en",
	"includeAdult": 1,
	"page": 0
};

###tmdbSearchById

parameters = {
	"language": "en",
	"alternativeTitles": 0,
	"casts": 0,
	"images": 0,
	"keywords": 0,
	"releases": 0,
	"trailers": 0,
	"translations": 0,
	"similarMovies": 0,
	"reviews": 0,
	"lists": 0
};

##License This product is released under the MIT License.

node-myapifilms's People

Contributors

denysvitali avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.