with kiwiHR and FullEnrich?
Check if the FullEnrich API key is valid. See the documentation
Starts the enrichment process for a specified contact. See the documentation
Update an existing employee's record in kiwiHR. See the documentation
Provides the current balance of credits available in your workspace. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kiwihr: {
type: "app",
app: "kiwihr",
}
},
async run({steps, $}) {
const data = {
"query": `{ users { items { id email } } }`,
}
return await axios($, {
method: "post",
url: `${this.kiwihr.$auth.api_url}/api/graphql`,
headers: {
"x-api-key": `${this.kiwihr.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
fullenrich: {
type: "app",
app: "fullenrich",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.fullenrich.com/api/v1/account/credits`,
headers: {
Authorization: `Bearer ${this.fullenrich.$auth.api_key}`,
},
})
},
})