episodes method

Pages<Episode> episodes(
  1. String showId, [
  2. Market? market
])

Get a Show's Episodes

market: An ISO 3166-1 alpha-2 country code or the string 'from_token'. If a country code is specified, only artists, albums, and tracks with content that is playable in that market is returned.

Implementation

Pages<Episode> episodes(String showId, [Market? market]) {
  var query = _buildQuery({
    'market': market?.name,
  });
  var queryString = query.isNotEmpty ? '?$query' : '';

  return _getPages('$_path/$showId/episodes$queryString',
      (json) => Episode.fromJson(json));
}