Track and manage onsite employees, visitors, and contractors with touchless workplace sign-in, desk booking, wellness checks, and more.
Delay the execution of your workflow for a specific amount of time (does not count against your compute time).
The WhosOnLocation API allows you to manage and track people's presence in various locations, such as office buildings, worksites, and campuses. In Pipedream, you can leverage this API to create automations that streamline visitor management, employee attendance, and emergency roll-calls. By crafting serverless workflows, you can respond to events in real-time, synchronize data with other systems, and enhance security and compliance processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
whosonlocation: {
type: "app",
app: "whosonlocation",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.whosonlocation.com/v1/staff`,
auth: {
username: `${this.whosonlocation.$auth.api_key}`,
password: ``,
},
})
},
})
The Delay API in Pipedream is a built-in function that allows you to pause a workflow for a specified amount of time. This can be incredibly useful when you need to stagger API calls to avoid rate limits, wait for an external process to complete, or simply introduce a delay between actions in a sequence. With precision up to milliseconds, the Delay API provides a simple yet powerful tool for managing timing in automation workflows.
export default defineComponent({
async run({steps, $}) {
// Specify the amount of time to delay your workflow in milliseconds
return $.flow.delay(5000)
},
})