Trigger workflows on an interval or cron schedule.
The Schedule app in Pipedream is a powerful tool that allows you to trigger workflows at regular intervals, ranging from every minute to once a year. This enables the automation of repetitive tasks and the scheduling of actions to occur without manual intervention. By leveraging this API, you can execute code, run integrations, and process data on a reliable schedule, all within Pipedream's serverless environment.
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}`,
},
})
},
})