with Asters and Selzy?
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 label is added to a post. See the documentation
Emit new event when a new contact subscribes to a specified list.
Retrieve the list of all labels of a specific workspace. See the documentation
Retrieve the list of posts' analytics of a social account. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
asters: {
type: "app",
app: "asters",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.asters.ai/api/external/v1.0/workspaces`,
headers: {
"x-api-key": `${this.asters.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})