with CommCare and Syntage?
The CommCare API provides programmatic access to CommCareHQ data, allowing developers to build powerful automations and integrations. With this API, you can retrieve and update data such as forms, cases, and users. These capabilities enable you to streamline workflows, synchronize datasets across platforms, and extend CommCare's functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
commcare: {
type: "app",
app: "commcare",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.commcarehq.org/api/v0.5/identity/`,
headers: {
"Authorization": `ApiKey ${this.commcare.$auth.email}:${this.commcare.$auth.api_key} `,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
satws: {
type: "app",
app: "satws",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.syntage.com/credentials`,
headers: {
"x-api-key": `${this.satws.$auth.api_key}`,
"accept": `application/ld+json`,
},
})
},
})