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

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

async function getMeeting({
  accessToken,
  meetingId,
  occurrenceId,
  showPreviousOccurrences,
}: {
  accessToken: string;
  meetingId: unknown;
  occurrenceId: unknown;
  showPreviousOccurrences: unknown;
}): Promise<Record<string, unknown>> {
  const id = zoomClient.normalizeMeetingId(meetingId);
  return zoomClient.requestObject({
    accessToken,
    method: HttpMethod.GET,
    path: `/meetings/${id}`,
    query: {
      occurrence_id: zoomClient.optionalText(occurrenceId),
      show_previous_occurrences: showPreviousOccurrences === true ? 'true' : undefined,
    },
    scope: 'meeting:read:meeting',
  });
}

export const zoomMeetings = {
  getMeeting,
};