1.0.4 • Published 2 years ago
adelrodriguez-sdk v1.0.4
adelrodriguez-sdk
This is a small SDK for the The One API, written in TypeScript.
Installation
npm install adelrodriguez-sdkUsage
import SDK from "adelrodriguez-sdk"
const sdk = new SDK({ apiKey: "fN4NgvRGuUxoYMZqSMHC" })
sdk.movies.list({ limit: 1 }).then((movies) => {
console.log(movies)
})Testing
Copy the repository to your local environment and install dependencies:
npm installThen copy the .env.example file to .env and fill in the API_KEY variable with your API key.
Finally, run the tests:
npm testBe ware that running the test suite multiple times might lead to 429 errors.