Node package manager
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
Check how many credits the associated account have. See the documentation
Check the risk of the image on the provided URL. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
picdefense: {
type: "app",
app: "picdefense",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.picdefense.io/api/v2/credits`,
headers: {
"X-API-TOKEN": `${this.picdefense.$auth.user_id}:${this.picdefense.$auth.api_key}`,
},
})
},
})