with eStreamDesk 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 eStreamDesk API facilitates the creation, manipulation, and tracking of support tickets within the eStreamDesk helpdesk system. By leveraging the API on Pipedream, you can seamlessly connect your customer support operations with other services to automate notifications, synchronize data across platforms, and trigger custom workflows. This can lead to improved response times, better customer service, and more efficient resolution of support issues.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
estreamdesk: {
type: "app",
app: "estreamdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.estreamdesk.$auth.domain}.estreamdesk.com/api/tickets`,
headers: {
"apiKey": `${this.estreamdesk.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})