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
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
learnworlds: {
type: "app",
app: "learnworlds",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.learnworlds.$auth.school_domain}/admin/api/v2/users`,
headers: {
Authorization: `Bearer ${this.learnworlds.$auth.oauth_access_token}`,
"Lw-Client": `${this.learnworlds.$auth.oauth_client_id}`,
},
})
},
})