with Outgrow and Formatting?
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.
The Outgrow API offers a toolkit to integrate interactive content like quizzes, polls, and calculators with your apps and workflows. Using Pipedream, you can automate actions based on events in Outgrow, such as new lead captures or quiz completions. This enables seamless data flows between Outgrow and CRM platforms, marketing tools, databases, and more. With Pipedream's serverless platform, you can trigger workflows with Outgrow events, manipulate the data, and connect to thousands of other apps without writing complex code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
outgrow: {
type: "app",
app: "outgrow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.outgrow.co/api/v1/get_cal/${this.outgrow.$auth.api_key}`,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})