startChannel method
Starts an existing channel
May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException. May throw BadGatewayException. May throw NotFoundException. May throw GatewayTimeoutException. May throw TooManyRequestsException. May throw ConflictException.
Parameter channelId
:
A request to start a channel
Implementation
Future<StartChannelResponse> startChannel({
required String channelId,
}) async {
ArgumentError.checkNotNull(channelId, 'channelId');
final response = await _protocol.send(
payload: null,
method: 'POST',
requestUri: '/prod/channels/${Uri.encodeComponent(channelId)}/start',
exceptionFnMap: _exceptionFns,
);
return StartChannelResponse.fromJson(response);
}