with npm and kiwiHR?
Emit new event with the latest count of downloads for an npm package. See the documentation
Emit new event when a new version of an npm package is published. See the documentation
Update an existing employee's record in kiwiHR. 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,
})
},
})