Skip to content

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

429 B
Raw Blame
import { HttpMethod } from '@activepieces/pieces-common';
import { heartbeatApi } from './client';

async function getEvent({ token, eventId }: { token: string; eventId: string }): Promise<Record<string, unknown>> {
  return heartbeatApi.request<Record<string, unknown>>({
    token,
    method: HttpMethod.GET,
    path: `/events/${eventId}`,
    operation: 'get event',
  });
}

export const heartbeatEvents = {
  getEvent,
};