Skip to main content
Glama

mcp-google-sheets

search-customer.ts994 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { stripeAuth } from '../..'; export const stripeSearchCustomer = createAction({ name: 'search_customer', auth: stripeAuth, displayName: 'Search Customer', description: 'Search for a customer in stripe by email', props: { email: Property.ShortText({ displayName: 'Email', description: undefined, required: true, }), }, async run(context) { const customer = { email: context.propsValue.email, }; const response = await httpClient.sendRequest({ method: HttpMethod.GET, url: 'https://api.stripe.com/v1/customers/search', headers: { Authorization: 'Bearer ' + context.auth, 'Content-Type': 'application/x-www-form-urlencoded', }, body: { query: 'email:' + "'" + customer.email + "'", }, }); 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