export type GetApiMeetingsMeetingIdArgs = {meeting_id: number}; export type GetApiMeetingsMeetingIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Get meeting details * * GET /meetings/{meeting_id} */ export const getApiMeetingsMeetingId = async (args: GetApiMeetingsMeetingIdArgs, options?: GetApiMeetingsMeetingIdOptions) => { const {baseUrl = "https://api.salesflare.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/meetings/${encodeURIComponent(String(args.meeting_id))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };