with Lawmatics 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.
Lawmatics is a platform tailored for legal firms, providing tools for CRM, marketing automation, and intake management. Its API enables the automation of routine tasks, data syncing across various platforms, and personalized client interactions without manual intervention. With Pipedream's serverless execution model and its capability to connect to hundreds of apps, one can automate workflows like client data synchronization, case status updates, or even trigger custom marketing campaigns based on client interaction. The API’s ability to communicate with Pipedream allows for an efficient and programmable way to handle legal operational processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lawmatics: {
type: "app",
app: "lawmatics",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lawmatics.com/v1/users`,
headers: {
Authorization: `Bearer ${this.lawmatics.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})