public async Task GetUserTopArtists_TimeRange_LongTerm_IsNotNull()
 {
     // assert
     Assert.IsNotNull(value: await api.GetUsersTopArtists(
                          timeRange: TimeRange.LongTerm,
                          accessToken: bearerAccessToken));
 }
示例#2
0
        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);
        }