5.0.0 • Published 5 years ago
@datafire/producthunt v5.0.0
@datafire/producthunt
Client library for Product Hunt
Installation and Usage
npm install --save @datafire/producthuntlet producthunt = require('@datafire/producthunt').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});Description
Actions
oauthCallback
Exchange the code passed to your redirect URI for an access_token
producthunt.oauthCallback({
"code": ""
}, context)Input
- input
object- code required
string
- code required
Output
- output
object- access_token
string - refresh_token
string - token_type
string - scope
string - expiration
string
- access_token
oauthRefresh
Exchange a refresh_token for an access_token
producthunt.oauthRefresh(null, context)Input
This action has no parameters
Output
- output
object- access_token
string - refresh_token
string - token_type
string - scope
string - expiration
string
- access_token
users.username.get
producthunt.users.username.get({}, context)Input
- input
object- username
string
- username
Output
Output schema unknown
categories.category.posts.get
producthunt.categories.category.posts.get({}, context)Input
- input
object- category
string - days_ago
string
- category
Output
Output schema unknown
Definitions
This integration has no definitions