themoviedb-api-client

1.1.0 • Public • Published

MovieDB

Build Status NPM version Dependency Status npm

node.js library that makes the interaction with themoviedb.org V3 API easy.

Installation

npm install themoviedb-api-client --save

Usage

Require MovieDB and provide your themoviedb.org API KEY

const tmdb = require('themoviedb-api-client"')('your api key');

Use the api methods as you want, for example:

tmdb.searchMovie({ query: 'Alien' }).then((res) => {
  console.log(res.body);
})
.catch(function(error) {
  console.log(error)
});

or

tmdb.movieInfo({ id: 666}).then((res) => {
  console.log(res.body);
})
.catch(function(error) {
  console.log(error)
});

Available methods

All themoviedb.org API v3 methods included.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.00
1.0.11
1.0.00

Package Sidebar

Install

npm i themoviedb-api-client

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

73.5 kB

Total Files

27

Last publish

Collaborators

  • svenkatreddynpm