easy-api-wrapper
v1.0.0
Published
make an easy api wrapper
Downloads
2
Readme
easyApi
create an api wrapper fast
installation
$ node install easy-api-wrapper --save
example
const EasyApi = require("easy-api-wrapper");
// creates an Tmdb class
class Tmdb extends EasyApi {
constructor(apiKey) {
super({apiKey: apiKey, baseUrl: "api.themoviedb.org", basePath: "/3", endPoints: require("./example-endPoints.json")});
}
}
const tmdb = new Tmdb("api key here");
tmdb.jobs().then(jobs => {
console.log(jobs);
});