with npm and Issue Badge?
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
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
issue_badge: {
type: "app",
app: "issue_badge",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.issuebadge.com/api/v1/validate-key`,
headers: {
Authorization: `Bearer ${this.issue_badge.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})