1.1.0 • Published 7 years ago
hackerone v1.1.0
Hackerone - A HackerOne API client for Node.js
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 :x: