AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import {
AuthenticationType,
HttpMessageBody,
HttpMethod,
HttpResponse,
httpClient,
} from '@activepieces/pieces-common';
import { tidyCalAuth } from '../auth';
import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
export async function calltidycalapi<T extends HttpMessageBody>(
method: HttpMethod,
apiUrl: string,
accessToken: AppConnectionValueForAuthProperty<typeof tidyCalAuth>,
body: HttpMessageBody | undefined
): Promise<HttpResponse<T>> {
return await httpClient.sendRequest<T>({
method: method,
url: `${TIDYCAL_API_BASE_URL}/${apiUrl}`,
authentication: {
type: AuthenticationType.BEARER_TOKEN,
token: accessToken.secret_text,
},
body: body,
});
}
export const TIDYCAL_API_BASE_URL = 'https://tidycal.com/api';