@carloscarniato/lotr-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

A simple Javascript SDK for the One API Movie entity.

Installation

npm i @carloscarniato/lotr-sdk

Authentication

To use the LOTR SDK, you need to provide an apiKey. This key is available for free on the One API website.

Usage

import LOTR from '@carloscarniato/lotr-sdk';

const sdk = new LOTR('<API_KEY>');

sdk.getMovies()
  .then((movies) => {
    // handle data
  })
  .catch((err) => {
    // handle error
  });

Methods

sdk.getMovies()
sdk.getMovieById()
sdk.getQuotesByMovieId()

Test

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i @carloscarniato/lotr-sdk

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

7.14 kB

Total Files

11

Last publish

Collaborators

  • carloscarniato