Skip to main content
Glama

mcp-google-sheets

unsubscribe-subscriber.ts870 B
import { zagomailAuth } from '../../'; import { createAction, Property } from '@activepieces/pieces-framework'; import { zagoMailApiService } from '../common/request'; import { listUId } from '../common/props'; export const unsubscribeSubscriber = createAction({ auth: zagomailAuth, name: 'unsubscribeSubscriber', displayName: 'Unsubscribe Subscriber', description: 'Unsubscribes a subscriber.', props: { listUId: listUId, subscriberUid: Property.ShortText({ displayName: 'Subscriber ID', description: 'The ID of the subscriber you want to unsubscribe.', required: true, }), }, async run({ propsValue, auth }) { const listUId = propsValue.listUId; const subsriberUid = propsValue.subscriberUid; return await zagoMailApiService.unsubscribeSubscriber( auth, listUId, subsriberUid ); }, });

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