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 FTrack API is a powerhouse for creative project management, enabling users to automate and integrate a wide array of tasks related to project tracking, asset management, and team collaboration. With Pipedream, you can harness this API to create custom workflows that trigger actions within FTrack or connect it with other apps to streamline your creative operations. It's a toolset for improving efficiency by automating repetitive tasks, syncing data across applications, and orchestrating complex project management activities.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ftrack: {
type: "app",
app: "ftrack",
}
},
async run({steps, $}) {
return await axios($, {
method: "POST",
url: `https://${this.ftrack.$auth.subdomain}.ftrackapp.com/api`,
headers: {
"Content-Type": `application/json`,
"ftrack-user": `${this.ftrack.$auth.username}`,
"ftrack-api-key": `${this.ftrack.$auth.api_key}`,
},
data: []
})
},
})