describeSchedule method
Get a channel schedule
May throw BadGatewayException.
May throw BadRequestException.
May throw ForbiddenException.
May throw GatewayTimeoutException.
May throw InternalServerErrorException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter channelId :
Id of the channel whose schedule is being updated.
Implementation
Future<DescribeScheduleResponse> describeSchedule({
required String channelId,
int? maxResults,
String? nextToken,
}) async {
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/prod/channels/${Uri.encodeComponent(channelId)}/schedule',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeScheduleResponse.fromJson(response);
}