with Flexie 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 Flexie API offers a powerful way to leverage customer relationship management (CRM) functionality within automated workflows. With the Flexie API, you can create, retrieve, update, and delete records, such as leads, contacts, and deals. You can also automate communication with leads via email or SMS, manage tasks and appointments, and create custom workflows to streamline your sales process.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
flexie: {
type: "app",
app: "flexie",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.flexie.$auth.subdomain}.flexie.io/api/users/self`,
params: {
apikey: `${this.flexie.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})