getChannelEpisodes method
Get all channel episodes. This endpoint is currently unlimited.
channelIdchannelIdof the user.paramsParams obtained by getChannel.
Returns List of channel episodes in the format of getChannel episodes key.
Implementation
Future<List> getChannelEpisodes(String channelId, String params) async {
final body = {'browseId': channelId, 'params': params};
const endpoint = 'browse';
final response = await sendRequest(endpoint, body);
final results = nav(response, [
...SINGLE_COLUMN_TAB,
...SECTION_LIST_ITEM,
...GRID_ITEMS,
]);
return parseContentList(
List<JsonMap>.from(results as List),
parseEpisode,
key: MMRIR,
);
}