getParticipant method
Gets information about the specified participant token.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter participantId :
Unique identifier for the participant. This is assigned by IVS and
returned by CreateParticipantToken.
Parameter sessionId :
ID of a session within the stage.
Parameter stageArn :
Stage ARN.
Implementation
Future<GetParticipantResponse> getParticipant({
required String participantId,
required String sessionId,
required String stageArn,
}) async {
final $payload = <String, dynamic>{
'participantId': participantId,
'sessionId': sessionId,
'stageArn': stageArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/GetParticipant',
exceptionFnMap: _exceptionFns,
);
return GetParticipantResponse.fromJson(response);
}