getChannel method
Displays information about a channel in a private re:Post.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter channelId :
The unique ID of the private re:Post channel.
Parameter spaceId :
The unique ID of the private re:Post.
Implementation
Future<GetChannelOutput> getChannel({
required String channelId,
required String spaceId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/spaces/${Uri.encodeComponent(spaceId)}/channels/${Uri.encodeComponent(channelId)}',
exceptionFnMap: _exceptionFns,
);
return GetChannelOutput.fromJson(response);
}