with Cloudbeds and Sperse?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloudbeds: {
type: "app",
app: "cloudbeds",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cloudbeds.com/api/v1.3/userinfo`,
headers: {
"x-api-key": `${this.cloudbeds.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sperse: {
type: "app",
app: "sperse",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.sperse.com/api/services/Platform/User/GetUsers`,
headers: {
"accept": `application/json;odata.metadata=minimal;odata.streaming=true`,
"api-key": `${this.sperse.$auth.api_key}`,
},
})
},
})