with DitLead and Dovetail?
Emit new events according to the selected event types. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ditlead: {
type: "app",
app: "ditlead",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api.ditlead.com/v1/apikey/validate`,
headers: {
Authorization: `Bearer ${this.ditlead.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dovetail: {
type: "app",
app: "dovetail",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dovetail.com/api/v1/projects`,
headers: {
Authorization: `Bearer ${this.dovetail.$auth.api_token}`,
},
})
},
})