with kiwiHR and Mailchimp?
Adds a new note to an existing subscriber. See docs here
Update an existing employee's record in kiwiHR. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kiwihr: {
type: "app",
app: "kiwihr",
}
},
async run({steps, $}) {
const data = {
"query": `{ users { items { id email } } }`,
}
return await axios($, {
method: "post",
url: `${this.kiwihr.$auth.api_url}/api/graphql`,
headers: {
"x-api-key": `${this.kiwihr.$auth.api_key}`,
},
data,
})
},
})
The Mailchimp API taps into the heart of your email marketing efforts, allowing you to manage subscribers, campaigns, and reports. With the API, you can automate tasks like syncing subscriber lists, segmenting contacts based on behavior, and personalizing email content to match user profiles. It's a powerful tool for marketers looking to fine-tune their email strategy and maximize engagement.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailchimp: {
type: "app",
app: "mailchimp",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://login.mailchimp.com/oauth2/metadata`,
headers: {
Authorization: `Bearer ${this.mailchimp.$auth.oauth_access_token}`,
},
})
},
})