getChannelById method

Future<Channel> getChannelById(
  1. String channelId
)

Get a channel by its ID

Arguments:

  • channelId ID of the Youtube Channel that is being queried

Implementation

Future<Channel> getChannelById(String channelId) async {
  final Response response =
      await get(path: '${HolodexEndpoint.channels}/$channelId');

  return Channel.fromString(response.body);
}