with Qualaroo 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.
Qualaroo is an advanced tool for collecting user feedback through surveys and analyzing those insights. With the Qualaroo API, you can programmatically manage your surveys, retrieve survey responses, and integrate user feedback into your data pipeline to enhance decision-making. On Pipedream, you can harness this API to automate the aggregation of survey data, trigger actions based on feedback, and sync insights across various platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qualaroo: {
type: "app",
app: "qualaroo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.qualaroo.com/api/v1/nudges/{survey_id}/responses.json`,
auth: {
username: `${this.qualaroo.$auth.api_key}`,
password: `${this.qualaroo.$auth.api_secret}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})