2.3.3 • Published 1 year ago

@vinodreddyr/lotr v2.3.3

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

lotr

npm (scoped)

This SDK allows seamless integration with lotr APIs assisting in building cool applications with "Lord of the Rings" data that use JavaScript, providing an easy interface to communicate with The One API.

Requirements

To use this SDK, you will need:

Node installation will include NPM, which is responsible for dependency management.

Installation

Node.js

npm i @vinodreddyr/lotr

import { getBooks } from '@vinodreddyr/lotr/index.js'

SDK Versioning

This SDK uses Semantic Versioning

It has three main parts, each corresponding to importance of a release: “MAJOR.MINOR.PATCH”.

example: v1.0.0 v1.2.0 v2.0.0

Requests

Use the provided methods from the SDK to fetch LOTR data. Use .then()/.catch() to handle successful and failed requests.

lotr.getBooks()
  .then(data => {
    // Response handling
  })
  .catch(error => {
    // Error handling
  });

Methods

Book

  • getBooks()
  • getBook(book_id)
  • getBookChapters(book_id)
  • getChapters()
  • getChapter(chatper_id)

Movie

  • getMovies()
  • getMovie(movie_id)

Character

  • getCharacters()
  • getCharacter(character_id)

Quote

  • getQuotes()
  • getQuote(quote_id)
  • getCharacterQuotes(character_id)
  • getMovieQuotes(movie_id)
2.3.3

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago