with Gatekeeper 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 Gatekeeper API empowers users to streamline vendor and contract management through its robust suite of features on Pipedream. With this API, you can automate processes like vendor approvals, contract renewals, and compliance checks. By integrating Gatekeeper with other apps on Pipedream, you get the power to create custom, automated workflows that can save time, reduce human error, and ensure timely actions on vendor-related activities.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gatekeeper: {
type: "app",
app: "gatekeeper",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.gatekeeper.$auth.subdomain}.gatekeeperhq.com/api/suppliers`,
headers: {
Authorization: `Bearer ${this.gatekeeper.$auth.auth_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})