with Workday and Dante AI?
Emit new event for each new worker created in Workday. See the documentation
Change the business title of a worker. See the documentation
List supervisory organizations. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
workday: {
type: "app",
app: "workday",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.workday.$auth.rest_api_endpoint}/workers`,
headers: {
Authorization: `Bearer ${this.workday.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dante_ai: {
type: "app",
app: "dante_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dante-ai.com/profile`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.dante_ai.$auth.api_key}`,
},
params: {
team_id: `${this.dante_ai.$auth.team_id}`,
},
})
},
})