Skip to main content
Glama

mcp-google-sheets

bulk-email-verification.ts1.21 kB
import { reoonEmailVerifyAuth } from '../..'; import { createAction, Property } from '@activepieces/pieces-framework'; import { verifyEmails } from '../common/send-util'; export const bulkEmailVerification = createAction({ auth: reoonEmailVerifyAuth, name: 'bulkEmailVerificationTask', displayName: 'Create Bulk Email Verification', description: 'Creates bulk email verification task.', props: { taskName: Property.ShortText({ displayName: 'Task Name', description: 'Name of the verification task', required: true, }), emails: Property.Array({ displayName: 'Emails', description: 'Emails to verify (You can also provide multiple emails separated by comma)', required: true, }), }, async run(context) { const emails = context.propsValue.emails as string[]; // Each email field could be a comma separated list of emails so we need to split them const emailsToVerify = emails.reduce( (acc: string[], email: string) => [...acc, ...email.split(',')], [] ); const res = await verifyEmails( emailsToVerify, context.propsValue.taskName, context.auth ); return res.body; }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server