5.0.0 • Published 5 years ago

@datafire/producthunt v5.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@datafire/producthunt

Client library for Product Hunt

Installation and Usage

npm install --save @datafire/producthunt
let 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

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

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

users.username.get

producthunt.users.username.get({}, context)

Input

  • input object
    • username string

Output

Output schema unknown

categories.category.posts.get

producthunt.categories.category.posts.get({}, context)

Input

  • input object
    • category string
    • days_ago string

Output

Output schema unknown

Definitions

This integration has no definitions

5.0.0

5 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago