with ServiceTitan and Microsoft Teams Bot?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicetitan: {
type: "app",
app: "servicetitan",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api${this.servicetitan.$auth.environment}servicetitan.io/settings/v2/tenant/${this.servicetitan.$auth.tenant_id}/employees`,
headers: {
Authorization: `Bearer ${this.servicetitan.$auth.oauth_access_token}`,
"st-app-key": `${this.servicetitan.$auth.client_id}`,
},
})
},
})
By connecting a Microsoft Teams Bot to Pipedream, you can build interactive chat experiences and automate messaging workflows using any of the thousands of apps available on Pipedream.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_teams_bot: {
type: "app",
app: "microsoft_teams_bot",
}
},
async run({steps, $}) {
return "Azure Bot successfully authenticated."
},
})