1.0.8 • Published 7 years ago

tmdb-wrapper v1.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

tmdb-wrapper

A wrapper for tmdb

Installation

Require tmdb-wrapper and your api key

const tmdbWrapper = require('tmdb-wrapper')('api_key');

Usage

SEARCH

// Search for movies, tv shows, actors etc (page is optional)
tmdbWrapper.searchMulti({ query: 'star wars', page: 1 }, (err, res) => {
    console.log(res);
});

// Search for movies (page is optional)
tmdbWrapper.searchMovie({ query: 'star wars', page: 1 }, (err, res) => {
    console.log(res);
});

// Search for tv shows (page is optional)
tmdbWrapper.searchTv({ query: 'star wars', page: 1 }, (err, res) => {
    console.log(res);
});

// Search for people (page is optional)
tmdbWrapper.searchPeople({ query: 'harrison ford', page: 1 }, (err, res) => {
    console.log(res);
});

// Search for keywords (page is optional)
tmdbWrapper.searchKeyword({ query: 'space', page: 1 }, (err, res) => {
    console.log(res);
});

// Search for collection (page is optional)
tmdbWrapper.searchCollection({ query: 'space', page: 1 }, (err, res) => {
    console.log(res);
});

// Search for company (page is optional)
tmdbWrapper.searchCompany({ query: 'walt disney', page: 1 }, (err, res) => {
    console.log(res);
});

MOVIE

// Get info about a movie
tmdbWrapper.movieInfo({ imdb_id: 'tt2527336' }, (err, res) => {
    console.log(res);
});

TV

// Get info about a tv show
tmdbWrapper.tvInfo({ id: '63247' }, (err, res) => {
    console.log(res);
});

// Get external ids from a tv show (imdb etc)
tmdbWrapper.tvId({ id: '63247' }, (err, res) => {
    console.log(res);
});

// Tv airing today (page is optional)
tmdbWrapper.tvAiringToday({ page: 1 }, (err, res) => {
    console.log(res);
});

// Tv on the air (page is optional)
tmdbWrapper.tvOnTheAir({ page: 1 }, (err, res) => {
    console.log(res);
});

More coming soon!

All functions/methods can be found here: https://github.com/mebn/tmdb-wrapper/wiki/methods

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago