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`,
},
})
},
})
CleverTap offers a powerful suite of tools for user engagement and analytics that can help you track user activities, segment users, and run targeted campaigns. Integrating Clevertap with Pipedream allows you to automate interactions with users, synchronize data across platforms, and create personalized marketing strategies. You can trigger workflows with real-time events, analyze user behavior, and leverage Pipedream's ability to connect to hundreds of other apps to enrich and act on your CleverTap data.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
clevertap: {
type: "app",
app: "clevertap",
}
},
async run({steps, $}) {
const data = {
"event_name": `App Launched`,
"from": 20171201,
"to": 20231225,
}
return await axios($, {
method: "post",
url: `https://${this.clevertap.$auth.region}.clevertap.com/1/profiles.json`,
headers: {
"X-CleverTap-Account-Id": `${this.clevertap.$auth.project_id}`,
"X-CleverTap-Passcode": `${this.clevertap.$auth.pass_code}`,
"Content-Type": `application/json`,
},
data,
})
},
})