with Melo and Instant?
Emit new event when a new property ad is created in Melo. Requires a Production Environment.
Melo API enables you to manage and automate tasks related to project management and team collaboration. Utilize Melo's endpoints to create tasks, update project details, manage team assignments, and retrieve project metrics. Integrating Melo API with Pipedream allows you to connect your project management workflows with other apps and services, streamlining productivity and providing real-time updates across your tech stack.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
melo: {
type: "app",
app: "melo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.melo.$auth.environment}.notif.immo/documents/properties`,
headers: {
"Content-Type": `application/json`,
"X-API-KEY": `${this.melo.$auth.api_key}`,
},
})
},
})
import { init, id } from '@instantdb/admin';
export default defineComponent({
props: {
instant: {
type: "app",
app: "instant",
}
},
async run({steps, $}) {
const db = init({
appId: this.instant.$auth.app_id,
adminToken: this.instant.$auth.admin_token,
});
return await db.query({ _: {} });
},
})