listAttendees method
Lists the attendees for the specified Amazon Chime SDK meeting. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.
May throw BadRequestException. May throw ForbiddenException. May throw NotFoundException. May throw ThrottledClientException. May throw UnauthorizedClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter meetingId
:
The Amazon Chime SDK meeting ID.
Parameter maxResults
:
The maximum number of results to return in a single call.
Parameter nextToken
:
The token to use to retrieve the next page of results.
Implementation
Future<ListAttendeesResponse> listAttendees({
required String meetingId,
int? maxResults,
String? nextToken,
}) async {
ArgumentError.checkNotNull(meetingId, 'meetingId');
_s.validateNumRange(
'maxResults',
maxResults,
1,
99,
);
final $query = <String, List<String>>{
if (maxResults != null) 'max-results': [maxResults.toString()],
if (nextToken != null) 'next-token': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/meetings/${Uri.encodeComponent(meetingId)}/attendees',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListAttendeesResponse.fromJson(response);
}