@pipedream/findymail
Version:
Pipedream Findymail Components
32 lines (29 loc) • 724 B
JavaScript
import findymail from "../../findymail.app.mjs";
export default {
key: "findymail-verify-email",
name: "Verify Email",
description: "Verifies the deliverability of a specified email. [See the documentation](https://app.findymail.com/docs/#verifier-POSTapi-verify)",
version: "0.0.1",
type: "action",
props: {
findymail,
email: {
propDefinition: [
findymail,
"email",
],
},
},
async run({ $ }) {
const response = await this.findymail.verifyEmail({
$,
data: {
email: this.email,
},
});
$.export("$summary", `Email verification status: ${response.verified
? "Verified"
: "Not Verified"}`);
return response;
},
};