The customer marketing platform for retail
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
What can I build with the Ometria API?
The Ometria API provides a comprehensive set of tools to help you create robust
and comprehensive customer segmentation and analytics for your eCommerce store.
With access to Ometria’s full suite of products, you can build the following:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ometria: {
type: "app",
app: "ometria",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ometria.com/v2/orders`,
headers: {
"X-Ometria-Auth": `${this.ometria.$auth.api_key}`,
},
})
},
})
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})