with FastField Mobile Forms 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 FastField Mobile Forms API allows you to automate interactions with your mobile forms. Using this API on Pipedream, you can trigger workflows based on form submissions, fetch and push data to and from your forms, and integrate with other services to streamline data processing. It’s ideal for creating powerful, serverless workflows that react to form data in real-time, update databases, send notifications, or even generate reports.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
fastfield_mobile_forms: {
type: "app",
app: "fastfield_mobile_forms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.fastfieldforms.com/services/v3/users`,
headers: {
Authorization: `Bearer ${this.fastfield_mobile_forms.$auth.session_token}`,
"X-Gatekeeper-SessionToken": `${this.fastfield_mobile_forms.$auth.session_token}`,
"FastField-API-Key": `${this.fastfield_mobile_forms.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})