with Formatting and Cloudbeds?
Emit new event when a new guest is created in Cloudbeds. See the documentation
Emit new event when a new reservation is created in Cloudbeds. See the documentation
Emit new event when a new transaction is created in Cloudbeds. See the documentation
Emit new event when a reservation status is changed in Cloudbeds. See the documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})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`,
},
})
},
})