with Middesk 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.
Middesk API is a game-changer for businesses looking to automate their background checks and company verifications. It's the bridge between your company and critical data on businesses you plan to engage with. Through the Middesk API on Pipedream, you can seamlessly conduct due diligence, validate company information, and ensure regulatory compliance. From automating onboarding workflows to real-time monitoring of business status changes, the integration possibilities with other apps and services are both robust and precise.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
middesk: {
type: "app",
app: "middesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.middesk.com/v1/webhooks`,
auth: {
username: `${this.middesk.$auth.api_key}`,
password: ``,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})