1.0.5 • Published 1 year ago

movielib v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

The Lord Of The Rings SDK

This project contains the SDK for the The One API API. It is written in TypeScript and uses isomorphic-unfetch for the http requests. This library allow you to make HTTP requests in a way that is consistent across both client and server-side Javascript

Installation

Install the package via npm(or your favorite package manager)

npm i movielib

Usage

You need to register here for an api key in order to use the sdk

This SDK is better used with TypeScript, but it can be used with JavaScript as well.

typescript

import { MovieLib } from 'movielib'

const authToken = process.env.AUTH_TOKEN
const client = new MovieLib(authToken)

const movies = await client.getMovies()
// or
const movie = await client.getMovie(id)
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago