with Alchemer 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 Alchemer API facilitates the creation and management of surveys, collection and analysis of responses, and automation of survey-related workflows. With Pipedream, you can harness this API to trigger actions in other applications based on survey events, sync survey data with databases or CRM systems, and even automate follow-up communications based on participant responses. Think of it as a bridge between Alchemer's rich survey feature set and a universe of other apps to streamline your data collection and analysis processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alchemer: {
type: "app",
app: "alchemer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.alchemer.com/v5/account`,
params: {
api_token: `${this.alchemer.$auth.api_key}`,
api_token_secret: `${this.alchemer.$auth.api_secret}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})