Trigger workflows on new emails, and send emails to yourself as part of a Pipedream 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 Piggy API provides a suite of loyalty and reward services allowing businesses to manage customer loyalty programs, offer discounts, and track customer engagement. With Pipedream, you can harness this powerful API to automate various aspects of your loyalty program. You might sync loyalty data with other business systems, trigger emails or notifications based on customer actions, or generate reports on the effectiveness of your loyalty campaigns.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
piggy: {
type: "app",
app: "piggy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.piggy.eu/api/v3/oauth/clients/contacts`,
headers: {
Authorization: `Bearer ${this.piggy.$auth.api_key}`,
},
})
},
})