@arraworld/the-one-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

The Lord of the Rings SDK

A Javascript SDK for the a Lord of the Rings API - The One API.

Getting Started

Install

npm i @arraworld/the-one-api

Usage

import { Client } from '@arraworld/the-one-api';

const client = new Client("access_key");

(async () => {
	await client.movie.list();
	await client.movie.get("5cd95395de30eff6ebccde5d");
	await client.quote.getQuotesByMovie("5cd95395de30eff6ebccde5d");
})();

Authentication

The API requires an access key for most routes. You can obtain an access token by signing up for an account here. All you need for setting up an account is a valid email address.

Building

npm run build

Testing

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i @arraworld/the-one-api

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

22.1 kB

Total Files

31

Last publish

Collaborators

  • arraworld