with Selzy and Yay.com?
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: {
yay_com: {
type: "app",
app: "yay_com",
}
},
async run({steps, $}) {
const data = {
"a": `h`,
}
return await axios($, {
url: `https://${this.yay_com.$auth.api_hostname}/authenticated`,
headers: {
"x-auth-reseller": `${this.yay_com.$auth.reseller}`,
"x-auth-user": `${this.yay_com.$auth.user}`,
"x-auth-password": `${this.yay_com.$auth.password}`,
},
data,
})
},
})