Skip to main content
Glama

mcp-google-sheets

api.ts1.22 kB
import { httpClient, HttpMethod, HttpRequest, } from '@activepieces/pieces-common'; import { ClearoutAuthType } from './auth'; export type KeyValuePair = { [key: string]: string | boolean | object | undefined; }; const clearoutAPI = async ( api: string, auth: ClearoutAuthType, method: HttpMethod = HttpMethod.GET, body: KeyValuePair = {} ) => { const baseUrl = 'https://api.clearout.io/v2/'; const request: HttpRequest = { body: body, method: method, url: `${baseUrl}${api}`, headers: { 'Content-Type': 'application/json', Authorization: `${auth.apiKey}`, }, }; const response = await httpClient.sendRequest(request); if (response.status !== 200) { throw new Error(`Bonjoro API error: ${response.status} ${response.body}`); } let data = []; data = response.body['data']; return { success: true, data: data, }; }; export async function getCredits(auth: ClearoutAuthType) { const api = 'email_verify/getcredits'; return clearoutAPI(api, auth); } export async function instantVerify( auth: ClearoutAuthType, data: KeyValuePair ) { const api = 'email_verify/instant'; return clearoutAPI(api, auth, HttpMethod.POST, data); }

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