with Basin 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 Basin API provides a powerful platform for automating form submissions, gathering feedback, and conducting surveys with ease. By leveraging the Pipedream's serverless execution model, you can trigger workflows in response to new form submissions, process and analyze the data, and take action in countless other apps. Whether you're routing form data to a CRM, generating support tickets, or synthesizing customer insights, Basin on Pipedream simplifies these tasks with its event-driven architecture and seamless integrations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
basin: {
type: "app",
app: "basin",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://usebasin.com/api/v1/submissions`,
params: {
api_token: `${this.basin.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})