0.0.11 • Published 2 years ago

liblab-rings-sdk v0.0.11

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

Lord of the Rings SDK

Nodejs API Wrapper for Lord of Rings API

Installation

yarn add @geekmidas/rings-sdk

Usage

import { createClient } from "@geekmidas/rings";

const client = createClient("[API_KEY]"); // Replace [API_KEY] with your API KEY

Resources

  • book
    • getAll
    • getById
    • getChapters
  • chapter
    • getAll
    • getById
  • character
    • getAll
    • getById
    • getQuotes
  • movie
    • getAll
    • getById
    • getQuotes
  • quote
    • getAll
    • getById

Book

const { nextPage, items } = await client.book.getAll();

const book = await client.book.getById("bookId");

items has type Book[] which can be seen here

Chapter

Character

Movie

Quote

Contributing

Tests

yarn test
0.0.11

2 years ago