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-sdk
Usage
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 install
Then copy the .env.example
file to .env
and fill in the API_KEY
variable with your API key.
Finally, run the tests:
npm test
Be ware that running the test suite multiple times might lead to 429 errors.