[][src]Function aspotify::endpoints::artists::get_artist_albums

pub async fn get_artist_albums<'_, '_, '_>(
    token: &'_ AccessToken,
    id: &'_ str,
    include_groups: Option<&'_ [AlbumGroup]>,
    limit: usize,
    offset: usize,
    country: Option<CountryCode>
) -> Result<Page<ArtistsAlbum>, EndpointError<Error>>

Get an artist's albums.

The include_groups parameter can specify which groups to include (album, single, appears_on, compilation). If not specified it includes them all. Limit and offset control the attributes of the resulting Page. Limit has a maximum of 50.

If no market is specified this function is likely to give duplicate albums, one for each market, so it is advised to provide a market.

Reference.