with Scoro and Microsoft Teams Events?
Scoro is a comprehensive solution that combines project management, time tracking, and CRM functionalities. With the Scoro API, you can automate your business workflows, sync data across different systems, and enhance productivity by reducing manual tasks. The API allows you to access, manipulate, and integrate your Scoro data with other services. When used on Pipedream, you can create serverless workflows to connect Scoro with hundreds of other apps, respond to Scoro events in real-time, and automate actions based on triggers from within Scoro or other platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
scoro: {
type: "app",
app: "scoro",
}
},
async run({steps, $}) {
const data = {
"company_account_id": `${this.scoro.$auth.company_name}`,
"apiKey": `${this.scoro.$auth.api_key}`,
"lang": `eng`,
}
return await axios($, {
method: "post",
url: `https://${this.scoro.$auth.company_name}.scoro.com/api/v2/companyAccount/list`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
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}`,
},
})
},
})