with Widgetform and Formatting?
Emit new event when a form submission is received. See the documentation
Retrieves the 10 most recent submissions. See the documentation
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
widgetform: {
type: "app",
app: "widgetform",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://usewidgetform.com/api/v1/hooks/zapier/user`,
headers: {
"x-api-key": `${this.widgetform.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})