albums method
includeGroups
- A comma-separated list of keywords that will be used to
filter the response. If not supplied, all album types will be returned.
Valid values are: 'album', 'single', 'appears_on', 'compilation'
country
- An ISO 3166-1 alpha-2 country code or the string from_token.
Supply this parameter to limit the response to one particular geographical
market. For example, for albums available in Sweden: country=SE.
If not given, results will be returned for all countries and you are
likely to get duplicate results per album, one for each country in which
the album is available!
Implementation
Pages<Album> albums(
String artistId, {
Market? country,
List<String>? includeGroups,
}) {
final includeGroups0 = includeGroups?.join(',');
final query = _buildQuery({
'include_groups': includeGroups0,
'country': country?.name,
});
return _getPages(
'$_path/$artistId/albums?$query', (json) => Album.fromJson(json));
}