Skip to content

The open alternative to Salesforce, designed for AI.

583 B
Raw Blame
import { type GraphCallTranscript } from 'src/features/transcripts/logic-functions/types/graph-call-transcript.type';
import { fetchGraphJson } from 'src/features/transcripts/logic-functions/utils/fetch-graph-json';

export const getMeetingTranscript = ({
  accessToken,
  meetingId,
  transcriptId,
}: {
  accessToken: string;
  meetingId: string;
  transcriptId: string;
}): Promise<GraphCallTranscript> =>
  fetchGraphJson<GraphCallTranscript>({
    accessToken,
    url: `me/onlineMeetings/${encodeURIComponent(meetingId)}/transcripts/${encodeURIComponent(transcriptId)}`,
  });