Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
This endpoint creates a new user profile if the user doesn't exist yet. Otherwise, the user profile is updated based on the properties provided. See the documentation
This endpoint tracks an event for a specific user. If the user profile doesn't exist Vero will create it. See the documentation
Send a simple or structured message (using embeds) to a Discord channel
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`,
},
})
},
})
Vero's API allows you to automate email marketing tasks such as managing campaigns, users, and events. Integrating Vero with Pipedream enables you to create workflows that respond to various triggers, like webhooks or schedules, and carry out actions such as sending emails, segmenting users, or tracking events. This integration can be a powerful tool to personalize your marketing efforts and respond in real-time to your customers' interactions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vero: {
type: "app",
app: "vero",
}
},
async run({steps, $}) {
const data = {
"auth_token": `${this.vero.$auth.auth_token}`,
"id":"1234",
"email":"test@getvero.com",
"channels": [{"type": "push", "address": "UNIQUE_DEVICE_TOKEN", "platform": "android"}],
"data": {"first_name": "John", "last_name": "Doe"}
}
return await axios($, {
method: "POST",
url: `https://api.getvero.com/api/v2/users/track`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})