with Demandbase and CaptureKit?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
demandbase: {
type: "app",
app: "demandbase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.insideview.com/api/v1/admin/usage`,
headers: {
"accesstoken": `${this.demandbase.$auth.oauth_access_token}`,
"accept": `application/json`,
},
params: {
period: `year`,
start: `2023`,
end: `2025`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
capturekit: {
type: "app",
app: "capturekit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.capturekit.dev/capture`,
headers: {
"x-access-key": `${this.capturekit.$auth.access_key}`,
},
params: {
url: `https://pipedream.com`,
},
})
},
})