with Uber Direct and Workday?
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: {
uber_direct: {
type: "app",
app: "uber_direct",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.uber.com/v1/customers/${this.uber_direct.$auth.customer_id}/deliveries`,
headers: {
Authorization: `Bearer ${this.uber_direct.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
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}`,
},
})
},
})