with FunnelCockpit 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 FunnelCockpit API enables the automation of marketing funnel tasks, such as managing contacts, sending out emails, or updating campaigns. With Pipedream, you can harness this API to create powerful workflows that trigger on various events, manage data across different platforms, and streamline your digital marketing efforts.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
funnelcockpit: {
type: "app",
app: "funnelcockpit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.funnelcockpit.com/me`,
headers: {
"Authorization": `${this.funnelcockpit.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})