예제 #1
0
        public async Task <bool> Unfollow(UnfollowRequest request)
        {
            Ensure.ArgumentNotNull(request, nameof(request));

            var statusCode = await API
                             .Delete(URLs.CurrentUserFollower(), request.BuildQueryParams(), request.BuildBodyParams())
                             .ConfigureAwait(false);

            return(statusCode == HttpStatusCode.NoContent);
        }
예제 #2
0
        public Task <FollowedArtistsResponse> OfCurrentUser(FollowOfCurrentUserRequest request)
        {
            Ensure.ArgumentNotNull(request, nameof(request));

            return(API.Get <FollowedArtistsResponse>(URLs.CurrentUserFollower(), request.BuildQueryParams()));
        }