csco-psirt
v1.0.1
Published
Cisco PSIRT OpenVulnerability API
Downloads
1
Readme
Cisco PSIRT openVul API NodeJS Integration
Installation
npm install csco-psirt
Resources
In order to use the Cisco PSIRT openVul API you must be able to Create an account here. If you need help setting this up go to Cisco DevNet where you'll find documentation on how to utilize this API.
You can find the Endpoints for the API here as well.
Usage
var psirt = require('csco-psirt');
psirt.login({
clientId: 'id',
clientSecret: 'secret'
}).then((token) => {
// Use Token in Authorization Header to get Security Advisory Records
return psirt.advisoryCall({
token: token,
path: '/advisories/cvrf/all',
method: 'GET'
});
}).then((advisories) => {
console.log(advisories);
})
** SECURITY TOKENS are rendered useless after 60 MINUTES