csco-psirt

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i csco-psirt

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • samwomack