with Talenox 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.
Talenox is a cloud-based HR software designed to handle payroll, leave, and employee records. With the Talenox API, you can automate various HR processes and integrate employee data across your business systems. On Pipedream, you can build workflows that trigger on events within Talenox or connect to other apps to streamline HR operations, manage staff details, automate payroll calculations, and synchronize employee data with other services like CRMs, messaging platforms, or time-tracking apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
talenox: {
type: "app",
app: "talenox",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.talenox.com/api/v2/employees`,
headers: {
Authorization: `Bearer ${this.talenox.$auth.api_token}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})