0.0.4 • Published 2 years ago

@heidibang/lotr-sdk v0.0.4

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

The Lord of the Rings - SDK

This SDK can be used to consume data from The One API.

Installation

npm install @heidibang/lotr-sdk

import LOTR from @heidibang/lotr-sdk

Usage

In order to access the data from this API, an access token is required and can be created HERE.

Once you have created your access token, you are now ready to use this SDK.

Initialize with the following:

const lotr = new LOTR({
  baseUrl: 'https://the-one-api.dev/v2',
  accessToken: <your-access-token>
});

Methods

Currently the following methods are supported:

getMovies()

getSingleMovies(movieId)

getMovieQuotes(movieId)

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago