with Microsoft Graph Security and Palatine Speech?
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: {
palatine_speech: {
type: "app",
app: "palatine_speech",
}
},
async run({steps, $}) {
const data = "<your text to summarize here>";
return await axios($, {
method: "post",
url: `https://api.palatine.ru/api/v1/ai_service/summarize_text`,
headers: {
Authorization: `Bearer ${this.palatine_speech.$auth.api_key}`,
"content-type": `text/plain`,
},
params: {
task: `meeting_summary`,
},
data,
})
},
})