with Ontraport and Formatting?
Emit new event when a new contact is created. See the docs
Emit new event when a new form is submitted. See the docs
Emit new event when a product is purchased. See the docs
Emit new event when a transaction is created with a product. See the docs
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
Ontraport's API offers robust capabilities for automating business processes, managing customer relationships, and streamlining marketing efforts. Use it to create dynamic, serverless workflows on Pipedream that react to events in real-time, sync data between services, or enhance customer interactions. With this API, you can automate tasks such as updating contact information, tracking customer behaviors, and sending targeted communications, all customizable to your specific business needs.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ontraport: {
type: "app",
app: "ontraport",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ontraport.com/1/Contacts`,
headers: {
"Api-Key": `${this.ontraport.$auth.api_key}`,
"Api-Appid": `${this.ontraport.$auth.api_appid}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})