with Waitlist and Uber Direct?
Emit new event each time a waitlist is created. See the documentation
Emit new event each time a subscriber is added. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
waitlist: {
type: "app",
app: "waitlist",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getwaitlist.com/api/v1/waitlist`,
headers: {
"Content-Type": `application/json`,
"api-key": `${this.waitlist.$auth.api_key}`,
},
})
},
})
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`,
},
})
},
})