node.js wrapper for the Product Hunt API
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api/v1.0.0
test/v1.0.0
.gitignore
.jshintrc
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

node-producthunt Build Status

Fully tested and documented node.js wrapper for the Product Hunt API

Install

npm install producthunt

Usage

The following is an example usage with a client level authentication.

var productHuntAPI = require('producthunt');

var productHunt = new productHuntAPI({
  client_id: // your client_id
  client_secret: // your client_secret
  grant_type: 'client_credentials'
});

// List all live events and filter by category
productHunt.live.index({search: {category: 'tech'}}, function (err, res) {
  // do something with the response
});

Documentation

The sources files are fully documented. You can also refer to this auto-generated documentation.

API Version

This module supports the latest v1 API of Product Hunt.

Contributing

Please open issues with feature requests and bugs.

License

MIT