with Simla.com and Ably?
Emit new event when a new customer is created. See the documentation
Emit new event when a customer is updated. See the documentation
Creates a new order with customer and order details. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
simla_com: {
type: "app",
app: "simla_com",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.simla_com.$auth.subdomain}.simla.com/api/${this.simla_com.$auth.version}/users`,
headers: {
"X-API-KEY": `${this.simla_com.$auth.api_key}`,
},
})
},
})
Ably API provides a platform for adding real-time messaging, streaming, and presence capabilities to your apps. With Pipedream, you can harness this power to create dynamic, event-driven workflows. Automate notifications, synchronize data across systems in real time, or react to Ably events to trigger actions in other services, like sending emails, updating databases, or calling external APIs.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ably: {
type: "app",
app: "ably",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.ably.io/channels/rest-example/messages`,
auth: {
username: `${this.ably.$auth.api_key_initial}`,
password: `${this.ably.$auth.api_key_remaining}`,
},
})
},
})