1.0.1 • Published 3 years ago

lotr-andres-sdk v1.0.1

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

LotR-Andres-SDK

LotR-Andres-SDK is Andres Mendez' take-home submission for LibLab; an SDK for the Lord of the Rings API The One API

Installation

npm install lotr-andres-sdk

Usage

Sign up for an API Key from here for usage and testing

import SDK from 'lotr-andres-sdk';
const lotr = new SDK('<%= your api key here %>');
getMovies();

async function getMovies() {
    const movies = await SDK.showMovies();
}

Testing

Place the API key in the .env file and run

npm test