Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Sends an event to the Cometly API. [See the documentation]https://developers.cometly.com/#endpoint-advanced-method)
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`,
},
})
},
})
The Cometly API allows you to track ad performance and automate the analysis and optimization of advertising campaigns. With Pipedream, you can create serverless workflows that interact with the Cometly API to streamline campaign management tasks, such as retrieving campaign metrics, updating ad spend, and generating performance reports. Using Cometly in conjunction with Pipedream’s robust integration capabilities, you can connect to numerous other services to enrich your ads data, automate actions based on performance thresholds, and synchronize your marketing efforts across platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cometly: {
type: "app",
app: "cometly",
}
},
async run({steps, $}) {
const data = {
"event_name": `developer`,
"email": `sergio@pipekit.pro`,
"comet_token": `ddffd8d8338383883838484843838388d8dfaf`,
"ip": `123.123.123.123`,
"event_time": `test`,
}
return await axios($, {
method: "post",
url: `https://app.cometly.com/public-api/v1/events`,
headers: {
Authorization: `Bearer ${this.cometly.$auth.api_token}`,
"Content-Type": `application/json`,
},
data,
})
},
})