with Nicereply 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 Nicereply API enables the integration of customer satisfaction data into various business workflows. With its API, you can automate the collection of customer feedback, analyze customer sentiment, track agent performance, and generate actionable insights. Leveraging Pipedream’s capabilities, you can create powerful automations that respond to Nicereply events, synchronize data across platforms, and trigger actions in other applications, enriching CRM data or streamlining support workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nicereply: {
type: "app",
app: "nicereply",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.nicereply.com/v1/users`,
headers: {
"Accept": `application/json`,
},
auth: {
username: ``,
password: `${this.nicereply.$auth.private_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})