with Helpwise 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 Helpwise API empowers you to automate and enhance your shared inbox experience. With it, you can programmatically manage emails, SMS, and other communications within your team's shared inboxes. By leveraging the Helpwise API on Pipedream, you can create efficient workflows that respond to inbound messages, synchronize communications with CRM platforms, organize customer interactions, and streamline various support processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpwise: {
type: "app",
app: "helpwise",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.helpwise.io/dev-apis/users/me`,
headers: {
"Accept": `application/json`,
"Accept-Encoding": `gzip, deflate`,
"Authorization": `${this.helpwise.$auth.api_key}:${this.helpwise.$auth.api_secret}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})