with Avochato and Consulta Única?
The Avochato API provides a communication toolkit that enables automated text messaging and phone call workflows. With Pipedream, you can leverage this API to craft custom automations that respond to incoming messages, send alerts, or synchronize communication with your CRM, among other functionalities. Imagine streamlining customer support by auto-responding to common queries, or improving sales engagement by triggering timely follow-up messages—all this without manual intervention, directly harnessing the power of Avochato's communication capabilities within Pipedream's serverless platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
avochato: {
type: "app",
app: "avochato",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.avochato.com/v1/accounts`,
params: {
auth_id: `${this.avochato.$auth.auth_id}`,
auth_secret: `${this.avochato.$auth.auth_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
consulta_unica: {
type: "app",
app: "consulta_unica",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://consultaunica.mx/api/v2/user-stats`,
headers: {
"x-api-key": `${this.consulta_unica.$auth.api_key}`,
},
params: {
userEmail: `${this.consulta_unica.$auth.email}`,
},
})
},
})