with Stack Overflow for Teams and Darwinbox?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
stack_overflow_for_teams: {
type: "app",
app: "stack_overflow_for_teams",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.stackoverflowteams.com/2.3/users`,
headers: {
"x-api-access-token": `${this.stack_overflow_for_teams.$auth.api_access_token}`,
},
params: {
order: `desc`,
team: `${this.stack_overflow_for_teams.$auth.team_slug}`,
},
})
},
})
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,
})
},
})