with Formdesk 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.
Formdesk is a versatile tool that lets you create online forms, surveys, and quizzes. With the Formdesk API on Pipedream, you can automate data collection, analysis, and integration. Whether you're syncing form submissions to a database, triggering emails based on responses, or connecting Formdesk to other apps for seamless data flow, Pipedream’s serverless platform empowers you to build powerful, customized workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
formdesk: {
type: "app",
app: "formdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.formdesk.$auth.domain}.formdesk.com/api/rest/v1/${this.formdesk.$auth.name_folder_of_forms}/users`,
headers: {
Authorization: `Bearer ${this.formdesk.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})