with Selzy and DataSet?
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}`,
},
})
},
})
The DataSet API enables you to manage and analyze large datasets. With Pipedream's integration, you can automate data ingestion, transformation, and analysis, create serverless workflows that respond to data events, and connect with other apps to enrich and utilize your datasets. Utilize Pipedream's serverless platform to trigger workflows, perform actions based on DataSet events, and orchestrate complex data processes with minimal setup.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dataset: {
type: "app",
app: "dataset",
}
},
async run({steps, $}) {
const data = {
"token": `${this.dataset.$auth.access_key}`,
}
return await axios($, {
method: "post",
url: `https://app.scalyr.com/api/listUsers`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})