Product Hunt

The best new products in tech

Go to site

Integrate the Product Hunt API with the Discord Webhook API

Setup the Product Hunt API trigger to run a workflow which integrates with the Discord Webhook API. Pipedream's integration platform allows you to integrate Product Hunt and Discord Webhook remarkably fast. Free for developers.

Send Message to Channel

Send a message to the channel tied to your incoming webhook. At least one of message OR embeds is required.

 
Try it

Connect Product Hunt

const data = {
  "query": `{ 
    viewer { 
      user { 
        id
        username 
      } 
    } 
  }`,
}
return await require("@pipedreamhq/platform").axios(this, {
  method: "post",
  url: `https://api.producthunt.com/v2/api/graphql`,
  headers: {
    Authorization: `Bearer ${auths.product_hunt.oauth_access_token}`,
  },
  data,
})

Connect Discord Webhook

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://discord.com/api/users/@me`,
  headers: {
    Authorization: `Bearer ${auths.discord_webhook.oauth_access_token}`,
  },
})