import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kiwihr: {
type: "app",
app: "kiwihr",
}
},
async run({steps, $}) {
const data = {
"query": `{ users { items { id email } } }`,
}
return await axios($, {
method: "post",
url: `https://${this.kiwihr.$auth.subdomain}.kiwihr.it/api/graphql`,
headers: {
"x-api-key": `${this.kiwihr.$auth.api_key}`,
},
data,
})
},
})
kiwiHR uses API keys for authentication. When you connect your kiwiHR account, Pipedream securely stores the keys so you can easily authenticate to kiwiHR APIs in both code and no-code steps.