with Traffit and TalentHR?
Emit new event whenever a new employee is created. See the documentation
Emit new event when a new job application is submitted. See the documentation
Hires a new employee and registers them in the system. See the documentation
Responds to an employee's time off request. This action requires the request ID and the response status as props. See the documentation
Allows updating an existing employee's data in the system. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
traffit: {
type: "app",
app: "traffit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.traffit.$auth.subdomain}.traffit.com/api/integration/v2/users/`,
headers: {
Authorization: `Bearer ${this.traffit.$auth.oauth_access_token}`,
"x-request-page-size": `5`,
"x-request-current-page": `1`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
talenthr: {
type: "app",
app: "talenthr",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://pubapi.talenthr.io/v1/timezones`,
auth: {
username: `${this.talenthr.$auth.api_key}`,
password: `c`,
},
})
},
})