with npm and Needle?
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
Search a collection for relevant data chunks based on a query. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
needle: {
type: "app",
app: "needle",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://needle-ai.com/api/v1/collections`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.needle.$auth.api_key}`,
},
})
},
})