Lord of the Rings SDK
This package implements V2
API from The One API.
and focuses on the basic functionality on below set of APIs.
-
/movie
(getMovies) -
/movie/{id}
( getMovieById) -
/movie/{id}/quote
(getMovieQuotes) -
/quote
(getQuotes) -
/quote/{id}
(getQuotesById)
Pre-requisites
To get started you would need to first SignUp and get a API_KEY
.
Install
You can install the package with npm.
npm install lord-o-de-rings [-S]
Usage
Once you have intalled the package, you can reference or import.
// Reference or Import the package.
const { LorSDK } = require('lord-o-de-rings');
// Pass the API_KEY you created in the `Pre-requisites` Step.
const lor = new LorSDK(<API_KEY>);
// lor.<filter-components chainable>.<main-methods>(<Option to Pass for paginations>)
lor.[match]('name', 'The Two Towers').[getMovies](<?options>).then(data=>{
console.log(data)
...
})
.catch(error=>{
console.error(error)
...
})
Supported filters that are chainble: filter methods