with Microsoft Teams Events and Frontify?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
frontify: {
type: "app",
app: "frontify",
}
},
async run({steps, $}) {
const data = {
"query": `query MyQuery {
currentUser {
id
... on AccountUser {
email
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://${this.frontify.$auth.domain}/graphql`,
headers: {
Authorization: `Bearer ${this.frontify.$auth.oauth_access_token}`,
},
data,
})
},
})