public async Task GetUserTopArtists_TimeRange_LongTerm_IsNotNull() { // assert Assert.IsNotNull(value: await api.GetUsersTopArtists( timeRange: TimeRange.LongTerm, accessToken: bearerAccessToken)); }
public async Task <PagedArtists> GetMostPlayedArtists(string access_token, TimeRange timeRange = TimeRange.LongTerm) { var http = new HttpClient(); var personal = new PersonalizationApi(http, access_token); var artists = await personal.GetUsersTopArtists(10, timeRange : timeRange); return(artists); }