with Selzy and Exact Mails?
Emit new event when a new email campaign is created. Useful for monitoring campaign creation activity.
Emit new event when the status of a campaign changes.
Emit new event when a new contact subscribes to a specified list.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
selzy: {
type: "app",
app: "selzy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.selzy.com/en/api/getCampaigns`,
params: {
format: `json`,
api_key: `${this.selzy.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
exact_mails: {
type: "app",
app: "exact_mails",
}
},
async run({steps, $}) {
const data = {
"linkedin_url": `https://www.linkedin.com/in/janesmith/`,
}
return await axios($, {
method: "post",
url: `https://api.exactmails.com/api/v1/email/find-linkedin-email`,
auth: {
username: `${this.exact_mails.$auth.username}`,
password: `${this.exact_mails.$auth.api_key}`,
},
data,
})
},
})