hackerone

1.1.0 • Public • Published

Hackerone - A HackerOne API client for Node.js

npm package

Build status Coverage Dependency Status Donate

Usage

Initializing the Client

var hackerone = require('hackerone');
var Hackerone = new hackerone('YOUR-API-TOKEN-IDENTIFIER', 'YOUR-API-TOKEN');

Reports

Read a report

Hackerone.reports.read('REPORT-ID', function (err, res) {
   ...
});

Query reports

Hackerone.reports.query({
    program: '...',
    reporter: '...'
 
}, function (err, res) {
   ...
});

Reports ► Comments

Post a public comment

Hackerone.reports.comments.create('REPORT-ID', {
    message: 'The message that will be posted'
    internal: boolean
}, function (err, res) {
    ...
});

Lock a report

Hackerone.reports.comments.close('REPORT-ID',{}, function (err, res) {
   ...
});

Reports ► Assignee

Assign a user

Hackerone.reports.assignee.update('REPORT-ID', {
    id: 'The ID of the user or group',
    type: 'Specifies whether a user or group should be assigned, or if the assignee should be cleared',
    message: 'The message that will be posted to the assigned user or group'
}, function (err, res) {
   ...

For more example see test/*.js

Todo

  • Documentation ❌

Readme

Keywords

Package Sidebar

Install

npm i hackerone

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • xc0d3rz