in integration/app/test-demo/src/utils/api.ts [37:59]
export async function getAttendee(
meetingId: string,
chimeAttendeeId: string
): Promise<GetAttendeeResponse> {
const params = {
title: encodeURIComponent(meetingId),
attendee: encodeURIComponent(chimeAttendeeId),
};
const res = await fetch('/attendee?' + new URLSearchParams(params), {
method: 'GET',
});
if (!res.ok) {
throw new Error('Invalid server response');
}
const data = await res.json();
return {
name: data.AttendeeInfo.Name,
};
}