with MailboxValidator and Bash?
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
MailboxValidator is a precision tool for email verification that checks email lists for bad or invalid addresses. It helps maintain hygiene in your mailing list by ensuring that emails are deliverable, reducing bounce rates significantly. By integrating MailboxValidator with Pipedream, you can automate the cleanse of email lists, validate emails in real-time during sign-up processes, and improve the reliability of email marketing campaigns. Pipedream's platform provides the flexibility to trigger workflows with events, schedule tasks, and connect to numerous other services to enrich data or take actions based on the results of an email validation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailboxvalidator: {
type: "app",
app: "mailboxvalidator",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mailboxvalidator.com/v1/validation/single`,
params: {
key: `${this.mailboxvalidator.$auth.api_key}`,
format: `json`,
email: `{enter_email_to_validate_here}`,
},
})
},
})
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS