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 Wiza API offers robust tools for scraping LinkedIn profiles and turning them into structured data such as emails, names, and company details. This data can be pivotal for sales and marketing professionals to build lead lists, validate contact information, and enrich existing databases directly through API integration. Leveraging this API on Pipedream allows users to automate the entire process of lead generation and management by connecting Wiza to a myriad of other services like CRMs, email marketing platforms, and data analysis tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wiza: {
type: "app",
app: "wiza",
}
},
async run({steps, $}) {
const data = {
"list": {
"name": "VP of Sales in San Francisco",
"enrichment_level": "partial",
"email_options": {
"accept_work": true,
"accept_personal": true,
"accept_generic": true
},
"items": [
{
"full_name": "Stephen Hakami",
"company": "Wiza",
"domain": "wiza.co",
"profile_url": "https://www.linkedin.com/in/stephen-hakami-5babb21b0/"
}
]
}
}
return await axios($, {
method: "post",
url: `https://wiza.co/api/lists`,
headers: {
Authorization: `Bearer ${this.wiza.$auth.api_key}`,
},
data,
})
},
})