RingCentral

Business communications platform

Go to site

Integrate the RingCentral API with the Discord Webhook API

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

Connect RingCentral

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ringcentral: {
      type: "app",
      app: "ringcentral",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.ringcentral.$auth.instancetype}.ringcentral.com/restapi/v1.0/account/~`,
      headers: {
        Authorization: `Bearer ${this.ringcentral.$auth.oauth_access_token}`,
      },
    })
  },
})

Connect Discord Webhook

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}`,
      },
    })
  },
})