with Hospitable and PushEngage?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hospitable: {
type: "app",
app: "hospitable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://public.api.hospitable.com/v2/user`,
headers: {
Authorization: `Bearer ${this.hospitable.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pushengage: {
type: "app",
app: "pushengage",
}
},
async run({steps, $}) {
return await axios($, {
url: ` https://api.pushengage.com/apiv1/notifications`,
headers: {
"api-key": `${this.pushengage.$auth.api_key}`,
},
})
},
})