with npm and Typeflo?
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: {
    typeflo: {
      type: "app",
      app: "typeflo",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.typeflo.$auth.api_url}/api/headless/content/posts`,
      headers: {
        Authorization: `Bearer ${this.typeflo.$auth.content_api_key}`,
      },
    })
  },
})