with Kenjo and QR API?
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
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"
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qr_api: {
type: "app",
app: "qr_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://qrapi.io/v2/qrcode/url`,
headers: {
"accept": `image/png`,
},
params: {
apikey: `${this.qr_api.$auth.api_key}`,
url: `https://pipedream.com`,
},
})
},
})