8000 GitHub - Naveen7892/comic-vine-api: An NPM package to communicate with Comic Vine API. This uses simple API methods with necessary arguments to query and return the promise method.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

An NPM package to communicate with Comic Vine API. This uses simple API methods with necessary arguments to query and return the promise method.

Notifications You must be signed in to change notification settings

Naveen7892/comic-vine-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub issues install size

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); 
});

About

An NPM package to communicate with Comic Vine API. This uses simple API methods with necessary arguments to query and return the promise method.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0