Lord of the Rings SDK
SDK is published at https://www.npmjs.com/package/@agao2/sdk-lotr
To install, use npm i @agao2/sdk-lotr
Examples of using sdk:
const { Lotr } = require("@agao2/sdk-lotr/lib/lotr")
const lotr = new Lotr('{API KEY HERE}')
const movies = await lotr.getMovies({ limit: 1, offset: 2 });
const movie = await lotr.getMovie('5cd95395de30eff6ebccde56');
const quotes = await lotr.getQuotes();
const movieQuotes = await lotr.getQuotes({ movieId: '5cd95395de30eff6ebccde5d', limit: 1, offset: 2 });
const quote = await lotr.getQuote('5cd96e05de30eff6ebcce841');