1.0.0 • Published 1 year ago
tlor-sdk v1.0.0
tlor-sdk
npm package for connecting to The Lord of The Rings API.
Install
npm i tlor-sdk
Available Functions
- getBooks()
- getBook()
- getMovies()
- getQuotes()
getChapters()
You can specify parameters for pagination optionally.
The optional paramaters are limit(number), page(number), offset(number) and sort(string).
- getBooks({ limit: 100, page: 1, offset: 10, sort: 'name:desc' })
Usage
import { getBooks, getChapters } from 'tlor-sdk'
const books = await getBooks();
const chapters = await getChapters();
1.0.0
1 year ago