with AcyMailing and Gem?
Emit new event when a candidate is added in Gem. See the documentation
Emit new event when a user subscribes to a specified list.
Emit new event when a user unsubscribes from the specified mailing list.
Creates a new user or updates an existing user in AcyMailing. If the user exists, will update the user's data with provided information. See the documentation
Sends an email to a single AcyMailing user. The user must exist in the AcyMailing database. See the documentation
Subscribes a user to one or more specified lists in AcyMailing. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
acymailing: {
type: "app",
app: "acymailing",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.acymailing.$auth.url}/index.php?page=acymailing_front&option=com_acym&ctrl=api&task=getUsers&limit=1&offset=0`,
headers: {
"Api-Key": `${this.acymailing.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gem: {
type: "app",
app: "gem",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.gem.com/v0/users`,
headers: {
"x-api-key": `${this.gem.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})