Trigger workflows on an interval or cron schedule.
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.
The McTime API provides functionality for tracking and managing time-related data. With McTime integrated into Pipedream, you can automate processes involving employee scheduling, time tracking, and payroll. Leverage Pipedream's ability to connect with hundreds of apps to link time data with project management tools, accounting software, and communication platforms, streamlining workflow efficiencies and reducing manual timekeeping errors.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mctime: {
type: "app",
app: "mctime",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://mctime.com/api/v2/auth/users`,
headers: {
"API_KEY": `${this.mctime.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})