with Yay.com and Mailjet?
Emit new event when a contact is added to a phone book. See the documentation
Initiates an outbound call to a specified number. See the documentation
Add a new unique contact to your global contact list and select its exclusion status. See the docs here
Retrieve details for all contact lists - name, subscriber count, creation timestamp, deletion status. See the docs here
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,
})
},
})
Mailjet's API offers the power to craft, send, and track emails with finesse. You can wield it to automate email sequences, synchronize email lists with your databases, and send transactional emails with personalized content. It's a playground for creating tailored email campaigns and dissecting campaign performance with rich analytics.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailjet: {
type: "app",
app: "mailjet",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mailjet.com/v3/REST/contactslist`,
auth: {
username: `{{custom_fields.public_key}}`,
password: `${this.mailjet.$auth.secret_key}`,
},
})
},
})