themoviedb-api-client
Version:
Library for interacting with themoviedb.com API
41 lines (36 loc) • 1.19 kB
Markdown
MovieDB
=======
[](https://travis-ci.org/svenkatreddy/themoviedb-api-client)
[](http://badge.fury.io/js/themoviedb-api-client)
[](https://david-dm.org/svenkatreddy/themoviedb-api-client)
[]()
node.js library that makes the interaction with themoviedb.org V3 API easy.
## Installation
```bash
npm install themoviedb-api-client --save
```
## Usage
Require MovieDB and provide your themoviedb.org API KEY
```js
const tmdb = require('themoviedb-api-client"')('your api key');
```
Use the api methods as you want, for example:
```js
tmdb.searchMovie({ query: 'Alien' }).then((res) => {
console.log(res.body);
})
.catch(function(error) {
console.log(error)
});
```
or
```js
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.