Trigger workflows on new emails, and send emails to yourself as part of a Pipedream workflow.
Get a unique address where you can send emails to trigger your workflow.
Customize and send an email to the email address you registered with Pipedream. The email will be sent by notifications@pipedream.com.
export default defineComponent({
async run({ $ }) {
const options = {
subject: 'Your subject here',
text: 'Your text here'
};
$.send.email(options);
},
});
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}`,
},
})
},
})