New-Age HR management software
Darwinbox is a cloud-based Human Resources Management System (HRMS) that streamulates HR processes from recruitment to retirement. With the Darwinbox API, you can automate various HR tasks such as employee onboarding, performance appraisals, and leave management. The API allows you to synchronize employee data across different systems, automate HR workflows, and build custom integrations to extend the capabilities of your HR tech stack.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
darwinbox: {
type: "app",
app: "darwinbox",
}
},
async run({steps, $}) {
const data = {
"username": `${this.darwinbox.$auth.username}`,
"password": `${this.darwinbox.$auth.password}`,
"api_key": `[AES256 encrypted string of(${this.darwinbox.$auth.api_key})]`,
}
return await axios($, {
method: "post",
url: `https://${this.darwinbox.$auth.subdomain}.darwinbox.in/loginapi/employee`,
headers: {
"Content-Type": `application/json`,
},
auth: {
username: `${this.darwinbox.$auth.username}`,
password: `${this.darwinbox.$auth.password}`,
},
data,
})
},
})
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.