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.
TurboHire is a talent acquisition platform that streamlines the hiring process using automation and AI. With its API, you can enrich candidate profiles, automate communication, and trigger actions based on recruitment stages. On Pipedream, you can leverage TurboHire’s API to create powerful automations by connecting it to a multitude of services, thus enhancing the hiring workflow, maintaining candidate databases, and ensuring timely interactions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
turbohire: {
type: "app",
app: "turbohire",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.turbohire.co/api/jobs/:job-id`,
headers: {
"X-Api-Key": `${this.turbohire.$auth.api_key}`,
"Content-Type": `application/json`,
},
params: {
"job-id": `{{Job-ID}}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})