public Paging <SimpleAlbum> GetArtistsAlbums(String id, AlbumType type = AlbumType.ALL, String country = "", int limit = 20, int offset = 0) { limit = Math.Min(50, limit); StringBuilder builder = new StringBuilder("https://api.spotify.com/v1/artists/" + id + "/albums"); builder.Append("?type=" + type.GetAlbumValue(",")); builder.Append("&limit=" + limit); builder.Append("&offset=" + offset); return(DownloadString <Paging <SimpleAlbum> >(builder.ToString())); }
public Task <Paging <SimpleAlbum> > GetArtistsAlbums(String id, AlbumType type = AlbumType.ALL, String market = "", int limit = 20, int offset = 0) { limit = Math.Min(50, limit); var builder = new StringBuilder("https://api.spotify.com/v1/artists/" + id + "/albums"); builder.Append("?album_type=" + type.GetAlbumValue(",")); builder.Append("&limit=" + limit); builder.Append("&offset=" + offset); if (market != "") { builder.Append("&market=" + market); } return(DownloadDataAsync <Paging <SimpleAlbum> >(builder.ToString())); }