with Hunter and MindStudio?
The Hunter API on Pipedream provides a potent suite for automating email discovery and verification processes. By interfacing with Hunter, you can programmatically find email addresses associated with a domain, verify the deliverability of emails, and retrieve other data points like the organization behind an address. This capability is invaluable for lead generation, sales outreach, and data enrichment workflows, where accurate contact information is crucial.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hunter: {
type: "app",
app: "hunter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hunter.io/v2/domain-search`,
params: {
api_key: `${this.hunter.$auth.api_key}`,
domain: `stripe.com`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mindstudio: {
type: "app",
app: "mindstudio",
}
},
async run({steps, $}) {
const data = {
"workerId": `${this.mindstudio.$auth.agent_id}`,
"includeBillingCosts": true,
"variables": {
"key1": "value1",
"key2": "value2"
},
"metadata": {
"tags": ["tag1", "tag2"]
},
"workflow": "optional-workflow-name",
"callbackUrl": "https://your-callback-url.com/endpoint"
}
return await axios($, {
method: "post",
url: `https://api.mindstudio.ai/developer/v2/agents/run`,
headers: {
Authorization: `Bearer ${this.mindstudio.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})