with Breathe and Thoughtly?
Emit new event when an existing employee is updated in Breathe. See the documentation
Emit new event when a new employee is created in Breathe. See the documentation
Emit new event when a new employee leave request is created in Breathe. See the documentation
Approve or reject an employee leave request in Breathe. See the documentation
Generates a new contact within your Thoughtly team. See the documentation
Creates a new leave request for an employee in Breathe. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
breathe: {
type: "app",
app: "breathe",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.breathe.$auth.api_url}/v1/account`,
headers: {
"x-api-key": `${this.breathe.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
thoughtly: {
type: "app",
app: "thoughtly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.thought.ly/user`,
headers: {
"accept": `application/json`,
" x-api-token": `${this.thoughtly.$auth.api_token}`,
},
})
},
})