Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
The Discord API interacts seamlessly with Pipedream, empowering you to craft customized automations and workflows for your Discord server. With this powerful integration, you can automate tasks like message posting, user management, and notifications, based on a myriad of triggers and actions from different apps. These automations can enhance the Discord experience for community moderators and members, by synchronizing with external tools, organizing community engagement, and streamlining notifications.
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`,
},
})
},
})
The U301 API provides a robust platform for URL management, including features like URL shortening, analytics, and secure redirection. This API is extremely useful for businesses or developers who need to manage and analyze web traffic through compact, trackable URLs. Using Pipedream, you can integrate the U301 API into automated workflows that enhance marketing efforts, streamline link management, and provide detailed insights into click-through behaviors.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
u301: {
type: "app",
app: "u301",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.u301.com/v2/shorten`,
headers: {
Authorization: `Bearer ${this.u301.$auth.api_key}`,
},
params: {
url: `https://pipedream.com?via=go`,
title: `Pipedream - Connect APIs, AI, databases and more.`,
},
})
},
})