with Orufy Bookings and NileDesk?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
orufy_bookings: {
type: "app",
app: "orufy_bookings",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://bookings.orufy.com/api/v1/bookings/api/event`,
auth: {
username: `${this.orufy_bookings.$auth.api_key}`,
password: `${this.orufy_bookings.$auth.secret_key}`,
},
params: {
status: `ACTIVE`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
niledesk: {
type: "app",
app: "niledesk",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.niledesk.$auth.api_key}`,
"template_id": `${this.niledesk.$auth.template_id}`,
}
return await axios($, {
method: "post",
url: `https://app.niledesk.com/api/public/CreateBoardDraftItem/${this.niledesk.$auth.org_id}`,
data,
})
},
})