with Wishpond 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.
Wishpond's API unlocks a world where digital marketing efforts can be automated and customized at scale. With this powerful tool at your disposal on Pipedream, you can create, manage, and track marketing campaigns effortlessly. Leverage Wishpond to capture leads, nurture them through personalized emails, and analyze the performance of your marketing strategies. By integrating with Pipedream, you capitalize on the ability to connect Wishpond with hundreds of apps, triggering actions based on campaign events, syncing leads to CRMs, and automating follow-up tasks without writing a single line of code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wishpond: {
type: "app",
app: "wishpond",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.wishpond.com/api/v1/leads/`,
headers: {
"X-Api-Token": `${this.wishpond.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})