with npm and TopMessage?
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: {
    topmessage: {
      type: "app",
      app: "topmessage",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.topmessage.com/v1/messages`,
      headers: {
        "x-topmessage-key": `${this.topmessage.$auth.api_key}`,
        "content-type": `application/json`,
      },
    })
  },
})