0.0.7 • Published 12 months ago

@hamirmahal/lotr-sdk v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Installation

You can run npm install @hamirmahal/lotr-sdk in your terminal to install this SDK for use in TypeScript and JavaScript projects.

Usage

TypeScript

import { LordOfTheRingsSDK } from '@hamirmahal/lotr-sdk';

const lotrSDK = new LordOfTheRingsSDK();

const runDemo = async () => {
  const result = await lotrSDK.authenticate('YOUR_API_KEY_HERE');
  console.log('Authentication result: ', result);

  const movies = await lotrSDK.getMovies();
  console.log('Movies: ', movies);
};

runDemo();

JavaScript

const { LordOfTheRingsSDK } = require('@hamirmahal/lotr-sdk');

const lotrSDK = new LordOfTheRingsSDK();

const runDemo = async () => {
  const result = await lotrSDK.authenticate('YOUR_API_KEY_HERE');
  console.log('Authentication result: ', result);

  const movies = await lotrSDK.getMovies();
  console.log('Movies: ', movies);
};

runDemo();

Testing

  1. Create a .env file at the root of this repository if it does not exist already, and update the contents of the file with your API key.
API_KEY=replace_everything_after_the_equals_sign_with_your_api_key
  1. You should now be able to run npm test to verify this SDK words as intended.
0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago

1.0.0

12 months ago