Giter Club home page Giter Club logo

hackerone's Introduction

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

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

}, function (err, res) {
   ...
});

Reports ► Comments

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

Reports ► Assignee

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 ❌

hackerone's People

Contributors

0-ali avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hackerone's Issues

`me.programs.query` returns error with 400 code status

When call

Hackerone.me.programs.query({
    size: 5
}, function (err, res) {
    console.log(err);
});

returns

{
  "errors": [
    {
      "status": 400,
      "title": "Invalid Parameter",
      "detail": "The parameter 'size' is invalid.",
      "source": {
        "parameter": "size"
      }
    }
  ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.