1.0.1 • Published 2 years ago

lotr-trilogy v1.0.1

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

lotr-trilogy

The lotr-trilogy is an SDK that provides functionalities related to the entities of the Lord of the Rings trilogy, including movies and quotes.

Getting started

Installation

To install the lotr-trilogy SDK, you can use npm:

npm install @behailu/lotr-trilogy

Acess Token

To access the API endpoints, you need to sign up for an account on the-one-api.dev and obtain an access token.

Usage

import {LotrTrilogy} from 'lotr-trilogy'

const client = new LotrTrilogy({
    bearerToken:'your-api-key',
});


client.movies.getMovieById('5cd95395de30eff6ebccde56').then((response)=> {
     console.log(response)}
);
client.movies.getAllMovies().then((response)=> {
    console.log(a)
});
client.quotes.getAllQuotes().then((response)=> { 
    console.log(a) 
});
client.quotes.getQouteById('5cd96e05de30eff6ebccebd0').then((response)=> {
    console.log(a)
});

License

Mit License@behailu

1.0.1

2 years ago

1.0.0

2 years ago