with ServiceTitan and Merge?
Creates an Activity object with the given values. See the documentation
Update a candidate profile with the specified ID. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicetitan: {
type: "app",
app: "servicetitan",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api${this.servicetitan.$auth.environment}servicetitan.io/settings/v2/tenant/${this.servicetitan.$auth.tenant_id}/employees`,
headers: {
Authorization: `Bearer ${this.servicetitan.$auth.oauth_access_token}`,
"st-app-key": `${this.servicetitan.$auth.client_id}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
merge: {
type: "app",
app: "merge",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.merge.dev/api/ats/v1/linked-accounts`,
headers: {
Authorization: `Bearer ${this.merge.$auth.api_key}`,
},
})
},
})