with CiviCRM and Voicemaker?
The CiviCRM API allows interaction with the CiviCRM ecosystem, enabling you to manage contacts, contributions, events, memberships, and more directly via Pipedream. With Pipedream's serverless platform, you can create workflows that automate tasks, sync data across apps, and respond to webhooks. Using Pipedream, you can harness the CiviCRM API to craft custom integrations that trigger actions within CiviCRM or sync data with other tools, without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
civicrm: {
type: "app",
app: "civicrm",
}
},
async run({steps, $}) {
const base64 = Buffer.from(this.civicrm.$auth.username+":"+this.civicrm.$auth.password).toString('base64');
return await axios($, {
method: "POST",
url: `https://${this.civicrm.$auth.url}/civicrm/ajax/api4/Contact/get`,
headers: {
"X-Civi-Auth": `Basic ${base64}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
voicemaker: {
type: "app",
app: "voicemaker",
}
},
async run({steps, $}) {
const data = {"language": "en-US" }
return await axios($, {
method: "post",
url: `https://developer.voicemaker.in/voice/list`,
headers: {
Authorization: `Bearer ${this.voicemaker.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})