Skip to content
A HackerOne API client for Node.js
JavaScript
Branch: master
Clone or download
Latest commit d41af21 Jul 1, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
list Fix #2 Jul 1, 2017
test Cleanup Jul 1, 2017
.travis.yml Fix miss config with codecov Jul 1, 2017
LICENSE Initial commit Jun 27, 2017
README.md Add new text/s Jul 1, 2017
index.js Add `programs` & `me` Jul 1, 2017
package.json Update readme & publish the package. Jul 1, 2017

README.md

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
You can’t perform that action at this time.