with OneLogin and Uber Direct?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onelogin: {
type: "app",
app: "onelogin",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.onelogin.$auth.subdomain}.onelogin.com/auth/rate_limit`,
headers: {
Authorization: `Bearer ${this.onelogin.$auth.oauth_access_token}`,
},
})
},
})
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`,
},
})
},
})