with Chattermill and Cloudbeds?
Emit new event when a new response is created. See the documentation
Create response model with given attributes. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chattermill: {
type: "app",
app: "chattermill",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chattermill.com/v1/projects`,
headers: {
Authorization: `Bearer ${this.chattermill.$auth.api_key}`,
},
})
},
})
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`,
},
})
},
})