Skip to main content
Glama

mcp-google-sheets

client.ts1.62 kB
import { HttpMessageBody, HttpMethod, QueryParams, httpClient, } from '@activepieces/pieces-common'; import { Organisation } from './models/oranisation'; import { Event } from './models/event'; import { Category } from './models/category'; import { RecipientField } from './models/recipient-field'; import { certopusCommon } from '.'; export class CertopusClient { constructor(private token: string) {} async makeRequest<T extends HttpMessageBody = any>( method: HttpMethod, url: string, query?: QueryParams, body?: object ): Promise<T> { const res = await httpClient.sendRequest({ method, url: certopusCommon.baseUrl + url, queryParams: query, body, headers: { 'x-api-key': this.token, }, }); return res.body.data; } listOrganisations(): Promise<Organisation[]> { return this.makeRequest<Organisation[]>(HttpMethod.GET, '/organisations'); } listEvents(organisationId: string): Promise<Event[]> { return this.makeRequest<Event[]>( HttpMethod.GET, `/events/${organisationId}` ); } listCategories(organisationId: string, eventId: string): Promise<Category[]> { return this.makeRequest<Category[]>(HttpMethod.GET, '/categories', { organisationId, eventId, }); } listRecipientFields( organisationId: string, eventId: string, categoryId: string ): Promise<RecipientField[]> { return this.makeRequest<RecipientField[]>( HttpMethod.GET, '/recipient_fields', { organisationId, eventId, categoryId, } ); } }

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