npm i will_bowman-sdk
A key is required and can be obtained from https://the-one-api.dev/sign-up
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(_))
To generate docs run
npm run jsdoc
# clone repo
cd testing
npm i
npm run test