import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kenjo: {
type: "app",
app: "kenjo",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.kenjo.$auth.api_url}/user-accounts`,
headers: {
Authorization: `${this.kenjo.$auth.access_token}`,
Accept: "application/json"
},
})
},
})
Emit new event when a new company is created in Kenjo. See the documentation
Emit new event when a new employee is added in Kenjo. See the documentation
Creates a new attendance entry for an employee in Kenjo. See the documentation
Kenjo uses OAuth authentication. When you connect your Kenjo account, Pipedream will open a popup window where you can sign into Kenjo and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Kenjo API.
Pipedream requests the following authorization scopes when you connect your account:
POST
{{custom_fields.api_url}}/auth/login
accept: application/json
apiKey={{custom_fields.api_key}}
POST
{{custom_fields.api_url}}/auth/login
content-type: application/json
accept: application/json
apiKey={{custom_fields.api_key}}