I would like to build a NodeJS package that will help others to pull data from an API without them knowing how to actually do the HTTP GET calls and provide the bearer token.
The API is for a mobile game called Clash of Clans and you can find it at [login to view URL] (you need to register and login in order to see the endpoints)
Their first endpoint is getclans which has around 10 parameters that you can pass it (you need to pass a minimum of one)
I am thinking that my code would let the end user do this:
const api = require('./[login to view URL]')
let clans = await [login to view URL](Name: "best", minMembers: 3);
My api wrapper would then return a promise with the clans the API returned.
I know how to build most of this but I would want someone that could build it in a way that code was very organized and easy to scale if the API change later on. I DO NOT need you to build ALL endpoints, I would simply need you to build one or two so that I can then see how it was built and then build the remaning endpoints.