with Peaka and Microsoft Graph Security?
Runs a specific query in Peaka and returns the result as line items. See the documentation
Performs a search for a specific query in Peaka and returns the matches as rows. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
peaka: {
type: "app",
app: "peaka",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://partner.peaka.studio/api/v1/supportedDrivers`,
headers: {
Authorization: `Bearer ${this.peaka.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})