with Dante AI and Microsoft Teams Events?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dante_ai: {
type: "app",
app: "dante_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dante-ai.com/profile`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.dante_ai.$auth.api_key}`,
},
params: {
team_id: `${this.dante_ai.$auth.team_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_teams_events: {
type: "app",
app: "microsoft_teams_events",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/me`,
headers: {
Authorization: `Bearer ${this.microsoft_teams_events.$auth.oauth_access_token}`,
},
})
},
})