with Dovetail and Microsoft Teams Events?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dovetail: {
type: "app",
app: "dovetail",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dovetail.com/api/v1/projects`,
headers: {
Authorization: `Bearer ${this.dovetail.$auth.api_token}`,
},
})
},
})
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}`,
},
})
},
})