1.0.2 • Published 1 year ago

@arraworld/the-one-api v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago