SDK for an existing Lord of the Rings API
This projects builds an sdk that allows developers access the lord rings APIs for movies and quotes : https://the-one-api.dev/documentation
To use this typescript sdk in your project:
- install the sdk from npm
npm install emmanuel-ainoo-sdk
- Import and Create an instance of the Client
import { LordOfTheRings } from "emmanuel-ainoo-sdk";
const loftrClient = new LordOfTheRings({
apiKey: "YOUR-API-KEY",
baseUrl: "https://the-one-api.dev/v2",
});
-
Access the lord of the rings documentation to get an API Key here:
https://the-one-api.dev/sign-up
-
Example: Use client to fetch movies
loftrClient.moviesApi.getMovies().then((response) => console.log(response));