with Microsoft Graph Security and KoboToolbox?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_graph_security: {
type: "app",
app: "microsoft_graph_security",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/security/alerts`,
headers: {
Authorization: `Bearer ${this.microsoft_graph_security.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kobotoolbox: {
type: "app",
app: "kobotoolbox",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kobotoolbox.$auth.region}.kobotoolbox.org/api/v2/assets.json`,
headers: {
"authorization": `Token ${this.kobotoolbox.$auth.api_key}`,
},
})
},
})