Skip to main content
Glama

mcp-google-sheets

sms-send.ts1.36 kB
import { createAction, Property } from '@activepieces/pieces-framework'; import { HttpMethod } from '@activepieces/pieces-common'; import { sevenAuth } from '../index'; import { callSevenApi } from '../common'; export const sendSmsAction = createAction({ auth: sevenAuth, name: 'send-sms', displayName: 'Send SMS', description: 'Sends an SMS to one or more recipients.', props: { to: Property.Array({ displayName: 'To', description: 'Recipient numbers of the SMS.', required: true }), delay: Property.DateTime({ displayName: 'Delay', required: false }), flash: Property.Checkbox({ displayName: 'Flash SMS ?', required: false }), from: Property.ShortText({ displayName: 'From', required: false }), text: Property.LongText({ displayName: 'Message Body', description: 'The body of the message to send.', required: true }), }, async run(context) { const { delay, flash, from, text, to } = context.propsValue; const response = await callSevenApi({ body: { delay: delay ? new Date(delay).toISOString().replace('T', ' ').substring(0, 19) : undefined, flash, from, text, to }, method: HttpMethod.POST }, 'sms', context.auth as string); return response.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