get static method

Future<ChannelUploadPage> get(
  1. YoutubeHttpClient httpClient,
  2. String channelId,
  3. String sorting,
  4. VideoType type,
)

Implementation

static Future<ChannelUploadPage> get(
  YoutubeHttpClient httpClient,
  String channelId,
  String sorting,
  VideoType type,
) {
  final url =
      'https://www.youtube.com/channel/$channelId/${type.name}?view=0&sort=$sorting&flow=grid';
  return retry(httpClient, () async {
    final raw = await httpClient.getString(url);
    return ChannelUploadPage.parse(raw, channelId, type);
  });
}