Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
The Pipedream Discord app enables you to build event-driven workflows that interact with the Discord API. When you authorize the Pipedream app's access to your guilds, you can use Pipedream workflows to perform common Discord actions, or write your own code against the Discord API.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord: {
type: "app",
app: "discord",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
With the Zonka Feedback API, you can create powerful tools for collecting
customer feedback. Here are just a few examples of the types of things you can
build with their API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zonka_feedback: {
type: "app",
app: "zonka_feedback",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://apis.zonkafeedback.com/users`,
headers: {
"Z-API-TOKEN": `${this.zonka_feedback.$auth.auth_token}`,
},
})
},
})