with Cflow and Mailrelay?
The Cflow API lets you automate and integrate your workflow management, enhancing your business processes with custom automations. With Pipedream, you can harness this API to create, update, and track workflows without manual interference. This enables you to connect Cflow with various other apps and services, streamlining your processes from initiation to completion.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cflow: {
type: "app",
app: "cflow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://us.cflowapps.com/integromat/api/cflow/getworkflows`,
headers: {
"Content-Type": `application/json`,
"apikey": `${this.cflow.$auth.apikey}`,
"userkey": `${this.cflow.$auth.userkey}`,
"username": `${this.cflow.$auth.username}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailrelay: {
type: "app",
app: "mailrelay",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.mailrelay.$auth.domain}/api/v1/package`,
headers: {
"x-auth-token": `${this.mailrelay.$auth.api_key}`,
},
})
},
})