with Office 365 Management and Sinch?
Emit new event when a new fax is received. See the documentation
Emit new event when a new message is received. See the documentation
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: {
sinch: {
type: "app",
app: "sinch",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sinch.$auth.region}.conversation.api.sinch.com/v1/projects/${this.sinch.$auth.project_id}/contacts`,
headers: {
Authorization: `Bearer ${this.sinch.$auth.oauth_access_token}`,
},
})
},
})