Skip to main content
Glama

mcp-google-sheets

retrieve-customer.ts916 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { AuthenticationType, httpClient, HttpMethod, } from '@activepieces/pieces-common'; import { stripeAuth } from '../..'; export const stripeRetrieveCustomer = createAction({ name: 'retrieve_customer', auth: stripeAuth, displayName: 'Retrieve Customer', description: 'Retrieve a customer in stripe by id', props: { id: Property.ShortText({ displayName: 'ID', description: undefined, required: true, }), }, async run(context) { const customer = { id: context.propsValue.id, }; const response = await httpClient.sendRequest({ method: HttpMethod.GET, url: `https://api.stripe.com/v1/customers/${customer.id}`, authentication: { type: AuthenticationType.BEARER_TOKEN, token: context.auth, }, }); 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