Payhere

Easy payment links

Integrate the Payhere API with the Discord Webhook API

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

Send Message with Discord Webhook API on New Webhook Event (Instant) from Payhere API
Payhere + Discord Webhook
 
Try it
Send Message (Advanced) with Discord Webhook API on New Webhook Event (Instant) from Payhere API
Payhere + Discord Webhook
 
Try it
Send Message With File with Discord Webhook API on New Webhook Event (Instant) from Payhere API
Payhere + Discord Webhook
 
Try it
New Webhook Event (Instant) from the Payhere API

Emit new event for each new webhook event

 
Try it
Send Message with the Discord Webhook API

Send a simple message to a Discord channel

 
Try it
Send Message (Advanced) with the Discord Webhook API

Send a simple or structured message (using embeds) to a Discord channel

 
Try it
Send Message With File with the Discord Webhook API

Post a message with an attached file

 
Try it

Connect Payhere

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    payhere: {
      type: "app",
      app: "payhere",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.payhere.$auth.environment}.payhere.co/api/v1/user`,
      headers: {
        Authorization: `Bearer ${this.payhere.$auth.api_key}`,
      },
    })
  },
})

Overview of Discord Webhook

With Discord's Webhook API, you can create applications that send messages to
Discord channels automatically. For example, you could create a bot that sends
a message to a channel every time a new blog post is published, or a message to
a channel when someone joins your Discord server.

Here are some ideas for what you could build using the Discord Webhook API:

  • A bot that sends a message to a channel when a new blog post is published
  • A bot that sends a message to a channel when someone joins your Discord
    server
  • A bot that sends a message to a channel when a new product is added to your
    online store

Connect Discord Webhook

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord_webhook: {
      type: "app",
      app: "discord_webhook",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        Authorization: `Bearer ${this.discord_webhook.$auth.oauth_access_token}`,
      },
    })
  },
})