@naveen7892/comic-vine-api
v1.0.2
Published
An NPM package to communicate with ComicVine API with easy to use methods.
Downloads
14
Maintainers
Readme
Communicates with ComicVine API
Install
$ npm install @naveen7892/comic-vine-api
Usage
const cv = require("@naveen7892/comic-vine-api");
// Gets recently updated 10 characters
cv.getRecentlyUpdatedCharacters(0, 10, "", "")
.then(response => {
response.json().then((r) => {
console.log(r);
}, (e) => {
console.log(e)
});
// res.send('fofa')
}).catch(err => {
console.log(err);
});
// Gets my favorite hero "Iron Man" details
cv.getCharacterById(1455)
.then(response => {
response.json().then((r) => {
console.log(r);
}, (e) => {
console.log(e)
});
// res.send('fofa')
}).catch(err => {
console.log(err);
});