1.0.1 • Published 1 year ago

will_bowman-sdk v1.0.1

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

Install

npm i will_bowman-sdk

Requirements

A key is required and can be obtained from https://the-one-api.dev/sign-up

Usage

const { SDK } = require('will_bowman-sdk')

const client = new SDK({
  token: process.env.API_TOKEN || '' // Provided from https://the-one-api.dev/sign-up
})

client.Movies.get().then((_) => console.log(_))

You can also reference the movie class directly

const { Movies } = require('will_bowman-sdk')

const movies = new Movies({ token: process.env.API_TOKEN || '' })
movies.get().then((_) => console.log(_))

Docs

To generate docs run

npm run jsdoc

Testing

# clone repo
cd testing
npm i 
npm run test