Skip to main content
Glama

mcp-google-sheets

add-subscriber-to-group.ts811 B
import MailerLite from '@mailerlite/mailerlite-nodejs'; import { createAction } from '@activepieces/pieces-framework'; import { mailerLiteAuth } from '../..'; import { mailerLiteCommon } from '../common'; export const addSubscriberToGroupAction = createAction({ auth: mailerLiteAuth, name: 'add_subscriber_to_group', displayName: 'Add Subscriber to a Group', description: 'Adds existing subscriber to a specific group.', props: { subscriberId: mailerLiteCommon.subscriberId(true), subscriberGroupId: mailerLiteCommon.subscriberGroupId(true), }, async run(context) { const client = new MailerLite({ api_key: context.auth }); const response = await client.groups.assignSubscriber( context.propsValue.subscriberId!, context.propsValue.subscriberGroupId!, ); return response.data; }, });

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