Your productivity cloud across work and life
The Microsoft 365 API taps into the productivity power of services like Outlook, OneDrive, Excel, and more. It's a treasure chest for those seeking to automate office tasks, streamline communications, and orchestrate data between applications. With Pipedream, you can create workflows that react to events in the Microsoft ecosystem, manipulate data, or automate repetitive tasks, freeing you to focus on the bigger picture.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_365: {
type: "app",
app: "microsoft_365",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/me`,
headers: {
Authorization: `Bearer ${this.microsoft_365.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_azure_ai_translator: {
type: "app",
app: "microsoft_azure_ai_translator",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.microsoft_azure_ai_translator.$auth.endpoint}/languages`,
headers: {
"Ocp-Apim-Subscription-Key": `${this.microsoft_azure_ai_translator.$auth.api_key}`,
"Ocp-Apim-Subscription-Region": `${this.microsoft_azure_ai_translator.$auth.location}`,
"Content-Type": `application/json`,
},
params: {
"api-version": `3.0`
},
})
},
})