with Office 365 Management and Housecall Pro?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
office_365_management: {
type: "app",
app: "office_365_management",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.office_365_management.$auth.api_endpoint}/api/v1.0/${this.office_365_management.$auth.tenant_id}/activity/feed/subscriptions/list`,
headers: {
Authorization: `Bearer ${this.office_365_management.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
housecall_pro: {
type: "app",
app: "housecall_pro",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.housecallpro.com/company`,
headers: {
"accept": `application/json`,
"authorization": `Token ${this.housecall_pro.$auth.api_key}`,
},
})
},
})