@jvetyska/jiri-vetyska-sdk
Version:
Lord Of The Rings Movies SDK
38 lines (24 loc) • 689 B
Markdown
Javascript SDK for Movie API of the Lord Of The Ring API: https://the-one-api.dev/.
```sh
npm i @jvetyska/jiri-vetyska-SDK
```
To use this SDK, you need to provide an `AuthToken`. The Auth Token is available for free on the API site: https://the-one-api.dev/sign-up.
To list all movies:
```js
import LOTR from '@jvetyska/jiri-vetyska-SDK';
const token = 'your-auth-token';
const client = new LOTR(token);
client.movie
.list()
.then((movies) => {
// display data
})
.catch((err) => {
// handle error
});
```
The API documentation is available at https://the-one-api.dev/documentation.