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
The Viral Loops API enables you to tap into the potent capabilities of referral marketing within your applications. Using this API through Pipedream, you can automate campaign management, participant tracking, and reward allocation. You can also trigger actions based on referral achievements or new participant sign-ups, making it simpler to manage marketing campaigns and analyze their performance in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
viral_loops: {
type: "app",
app: "viral_loops",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.viral-loops.com/api/v3/campaign`,
headers: {
"accept": `application/json`,
"apiToken": `${this.viral_loops.$auth.api_token}`,
},
})
},
})