import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
peoplehr: {
type: "app",
app: "peoplehr",
}
},
async run({steps, $}) {
const data = {
"APIKey": `${this.peoplehr.$auth.api_key}`,
"Action": `GetAllEmployeeDetail`,
"IncludeLeavers": `false`,
}
return await axios($, {
method: "post",
url: `https://api.peoplehr.net/Employee`,
data,
})
},
})
PeopleHR uses API keys for authentication. When you connect your PeopleHR account, Pipedream securely stores the keys so you can easily authenticate to PeopleHR APIs in both code and no-code steps.