with npm and Snipe-IT?
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
Creates a new hardware asset in Snipe-IT. See the documentation
Creates a new user in Snipe-IT with profile information required for asset or license assignments. See the documentation
Retrieves details of a specific hardware asset by ID. See the documentation
Retrieves license details including seat count, expiration, and current usage metrics. Note: The response returns 'product_key' but uses 'serial' field for POST/PUT/PATCH requests. See the documentation
Retrieves all assets currently assigned to a specific user. Useful for audits and inventory reviews. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
snipe_it: {
type: "app",
app: "snipe_it",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.snipe_it.$auth.api_url}/api/v1/users`,
headers: {
Authorization: `Bearer ${this.snipe_it.$auth.api_key}`,
"accept": `application/json`,
"content-type": `application/json`,
},
})
},
})