with Formsite 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 Formsite API enables you to automate interactions with your Formsite forms. You can retrieve form data, create new forms, or update existing ones, and even manage form submissions. With Pipedream's capabilities, you can integrate Formsite with countless other apps, create complex workflows, and trigger actions based on form submissions or other criteria. It's a powerful way to streamline data collection processes, feed collected data into other systems, or trigger events in other services in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
formsite: {
type: "app",
app: "formsite",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.formsite.$auth.server}.formsite.com/api/v2/${this.formsite.$auth.user_id}/forms`,
headers: {
Authorization: `Bearer ${this.formsite.$auth.access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})