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`,
},
})
},
})
Tick is a time tracking and project management tool designed to help teams keep track of time spent on various tasks and projects. With the Tick API, you can automate project time entries, generate reports, and sync time data with other tools. Specifically, when you plug the Tick API into Pipedream, you leverage serverless workflows to connect Tick with hundreds of other apps. You can automate time tracking, streamline project updates, and trigger actions based on time entry events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tick: {
type: "app",
app: "tick",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.tickspot.com/${this.tick.$auth.subscription_id}/api/v2/users.json`,
headers: {
"Authorization": `Token token=${this.tick.$auth.api_token}`,
"User-Agent": `MyCoolApp (${this.tick.$auth.email})`,
},
})
},
})