Skip to content

Commit eebf87b

Browse files
committed
1 parent 1b83561 commit eebf87b

38 files changed

+176
-35
lines changed

SpotifyAPI.Web/Clients/AlbumsClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public Task<FullAlbum> Get(string albumId, AlbumRequest request, CancellationTok
2424
return API.Get<FullAlbum>(URLs.Album(albumId), request.BuildQueryParams(), cancel);
2525
}
2626

27+
[System.Obsolete("This endpoint (GET /albums) has been removed.")]
2728
public Task<AlbumsResponse> GetSeveral(AlbumsRequest request, CancellationToken cancel = default)
2829
{
2930
Ensure.ArgumentNotNull(request, nameof(request));

SpotifyAPI.Web/Clients/ArtistsClient.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ public Task<ArtistsRelatedArtistsResponse> GetRelatedArtists(string artistId, Ar
5454
return API.Get<ArtistsRelatedArtistsResponse>(URLs.ArtistRelatedArtists(artistId), request.BuildQueryParams(), cancel);
5555
}
5656

57+
[System.Obsolete("This endpoint (GET /artists) has been removed.")]
5758
public Task<ArtistsResponse> GetSeveral(ArtistsRequest request, CancellationToken cancel = default)
5859
{
5960
Ensure.ArgumentNotNull(request, nameof(request));
6061

6162
return API.Get<ArtistsResponse>(URLs.Artists(), request.BuildQueryParams(), cancel);
6263
}
6364

65+
[System.Obsolete("This endpoint (GET /artists/{id}/top-tracks) has been removed.")]
6466
public Task<ArtistsTopTracksResponse> GetTopTracks(string artistId, ArtistsTopTracksRequest request, CancellationToken cancel = default)
6567
{
6668
Ensure.ArgumentNotNullOrEmptyString(artistId, nameof(artistId));

SpotifyAPI.Web/Clients/AudiobooksClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public Task<FullAudiobook> Get(string audiobookId, AudiobookRequest request, Can
2424
return API.Get<FullAudiobook>(URLs.Audiobook(audiobookId), request.BuildQueryParams(), cancel);
2525
}
2626

27+
[System.Obsolete("This endpoint (GET /audiobooks) has been removed.")]
2728
public Task<AudiobooksResponse> GetSeveral(AudiobooksRequest request, CancellationToken cancel = default)
2829
{
2930
Ensure.ArgumentNotNull(request, nameof(request));

SpotifyAPI.Web/Clients/BrowseClient.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,29 @@ public class BrowseClient : APIClient, IBrowseClient
99
{
1010
public BrowseClient(IAPIConnector apiConnector) : base(apiConnector) { }
1111

12+
[System.Obsolete("This endpoint (GET /browse/categories) has been removed.")]
1213
public Task<CategoriesResponse> GetCategories(CancellationToken cancel = default)
1314
{
1415
return API.Get<CategoriesResponse>(URLs.Categories(), cancel);
1516
}
1617

18+
[System.Obsolete("This endpoint (GET /browse/categories) has been removed.")]
1719
public Task<CategoriesResponse> GetCategories(CategoriesRequest request, CancellationToken cancel = default)
1820
{
1921
Ensure.ArgumentNotNull(request, nameof(request));
2022

2123
return API.Get<CategoriesResponse>(URLs.Categories(), request.BuildQueryParams(), cancel);
2224
}
2325

26+
[System.Obsolete("This endpoint (GET /browse/categories/{id}) has been removed.")]
2427
public Task<Category> GetCategory(string categoryId, CancellationToken cancel = default)
2528
{
2629
Ensure.ArgumentNotNullOrEmptyString(categoryId, nameof(categoryId));
2730

2831
return API.Get<Category>(URLs.Category(categoryId), cancel);
2932
}
3033

34+
[System.Obsolete("This endpoint (GET /browse/categories/{id}) has been removed.")]
3135
public Task<Category> GetCategory(string categoryId, CategoryRequest request, CancellationToken cancel = default)
3236
{
3337
Ensure.ArgumentNotNullOrEmptyString(categoryId, nameof(categoryId));
@@ -63,11 +67,13 @@ public Task<RecommendationGenresResponse> GetRecommendationGenres(CancellationTo
6367
return API.Get<RecommendationGenresResponse>(URLs.RecommendationGenres(), cancel);
6468
}
6569

70+
[System.Obsolete("This endpoint (GET /browse/new-releases) has been removed.")]
6671
public Task<NewReleasesResponse> GetNewReleases(CancellationToken cancel = default)
6772
{
6873
return API.Get<NewReleasesResponse>(URLs.NewReleases(), cancel);
6974
}
7075

76+
[System.Obsolete("This endpoint (GET /browse/new-releases) has been removed.")]
7177
public Task<NewReleasesResponse> GetNewReleases(NewReleasesRequest request, CancellationToken cancel = default)
7278
{
7379
Ensure.ArgumentNotNull(request, nameof(request));

SpotifyAPI.Web/Clients/ChaptersClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public Task<FullAudiobookChapter> Get(string chapterId, ChapterRequest request,
2424
return API.Get<FullAudiobookChapter>(URLs.Chapter(chapterId), request.BuildQueryParams(), cancel);
2525
}
2626

27+
[System.Obsolete("This endpoint (GET /chapters) has been removed.")]
2728
public Task<ChaptersResponse> GetSeveral(ChaptersRequest request, CancellationToken cancel = default)
2829
{
2930
Ensure.ArgumentNotNull(request, nameof(request));

SpotifyAPI.Web/Clients/EpisodesClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public Task<FullEpisode> Get(string episodeId, EpisodeRequest request, Cancellat
2424
return API.Get<FullEpisode>(URLs.Episode(episodeId), request.BuildQueryParams(), cancel);
2525
}
2626

27+
[System.Obsolete("This endpoint (GET /episodes) has been removed.")]
2728
public Task<EpisodesResponse> GetSeveral(EpisodesRequest request, CancellationToken cancel = default)
2829
{
2930
Ensure.ArgumentNotNull(request, nameof(request));

SpotifyAPI.Web/Clients/FollowClient.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ public class FollowClient : APIClient, IFollowClient
1010
{
1111
public FollowClient(IAPIConnector apiConnector) : base(apiConnector) { }
1212

13+
[System.Obsolete("This endpoint (GET /me/following/contains) has been removed. Use GET /me/library/contains instead.")]
1314
public Task<List<bool>> CheckCurrentUser(FollowCheckCurrentUserRequest request, CancellationToken cancel = default)
1415
{
1516
Ensure.ArgumentNotNull(request, nameof(request));
1617

1718
return API.Get<List<bool>>(URLs.CurrentUserFollowerContains(), request.BuildQueryParams(), cancel);
1819
}
1920

21+
[System.Obsolete("This endpoint (GET /playlists/{id}/followers/contains) has been removed. Use GET /me/library/contains instead.")]
2022
public Task<List<bool>> CheckPlaylist(string playlistId, FollowCheckPlaylistRequest request, CancellationToken cancel = default)
2123
{
2224
Ensure.ArgumentNotNullOrEmptyString(playlistId, nameof(playlistId));
@@ -25,6 +27,7 @@ public Task<List<bool>> CheckPlaylist(string playlistId, FollowCheckPlaylistRequ
2527
return API.Get<List<bool>>(URLs.PlaylistFollowersContains(playlistId), request.BuildQueryParams(), cancel);
2628
}
2729

30+
[System.Obsolete("This endpoint (PUT /me/following) has been removed. Use PUT /me/library instead.")]
2831
public async Task<bool> Follow(FollowRequest request, CancellationToken cancel = default)
2932
{
3033
Ensure.ArgumentNotNull(request, nameof(request));
@@ -35,6 +38,7 @@ public async Task<bool> Follow(FollowRequest request, CancellationToken cancel =
3538
return HTTPUtil.StatusCodeIsSuccess(statusCode);
3639
}
3740

41+
[System.Obsolete("This endpoint (PUT /playlists/{id}/followers) has been removed. Use PUT /me/library instead.")]
3842
public async Task<bool> FollowPlaylist(string playlistId, CancellationToken cancel = default)
3943
{
4044
Ensure.ArgumentNotNullOrEmptyString(playlistId, nameof(playlistId));
@@ -45,6 +49,7 @@ public async Task<bool> FollowPlaylist(string playlistId, CancellationToken canc
4549
return HTTPUtil.StatusCodeIsSuccess(statusCode);
4650
}
4751

52+
[System.Obsolete("This endpoint (PUT /playlists/{id}/followers) has been removed. Use PUT /me/library instead.")]
4853
public async Task<bool> FollowPlaylist(string playlistId, FollowPlaylistRequest request, CancellationToken cancel = default)
4954
{
5055
Ensure.ArgumentNotNullOrEmptyString(playlistId, nameof(playlistId));
@@ -70,6 +75,7 @@ public Task<FollowedArtistsResponse> OfCurrentUser(FollowOfCurrentUserRequest re
7075
return API.Get<FollowedArtistsResponse>(URLs.CurrentUserFollower(), request.BuildQueryParams(), cancel);
7176
}
7277

78+
[System.Obsolete("This endpoint (DELETE /me/following) has been removed. Use DELETE /me/library instead.")]
7379
public async Task<bool> Unfollow(UnfollowRequest request, CancellationToken cancel = default)
7480
{
7581
Ensure.ArgumentNotNull(request, nameof(request));
@@ -80,6 +86,7 @@ public async Task<bool> Unfollow(UnfollowRequest request, CancellationToken canc
8086
return HTTPUtil.StatusCodeIsSuccess(statusCode);
8187
}
8288

89+
[System.Obsolete("This endpoint (DELETE /playlists/{id}/followers) has been removed. Use DELETE /me/library instead.")]
8390
public async Task<bool> UnfollowPlaylist(string playlistId, CancellationToken cancel = default)
8491
{
8592
Ensure.ArgumentNotNullOrEmptyString(playlistId, nameof(playlistId));

SpotifyAPI.Web/Clients/Interfaces/IAlbumsClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public interface IAlbumsClient
1717
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-multiple-albums
1818
/// </remarks>
1919
/// <returns></returns>
20+
[System.Obsolete("This endpoint (GET /albums) has been removed.")]
2021
Task<AlbumsResponse> GetSeveral(AlbumsRequest request, CancellationToken cancel = default);
2122

2223
/// <summary>

SpotifyAPI.Web/Clients/Interfaces/IArtistsClient.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public interface IArtistsClient
1717
/// <param name="request">The request-model which contains required and optional parameters</param>
1818
/// <param name="cancel">The cancellation-token to allow to cancel the request.</param>
1919
/// <returns></returns>
20+
[System.Obsolete("This endpoint (GET /artists) has been removed.")]
2021
Task<ArtistsResponse> GetSeveral(ArtistsRequest request, CancellationToken cancel = default);
2122

2223
/// <summary>
@@ -80,6 +81,7 @@ public interface IArtistsClient
8081
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-an-artists-top-tracks
8182
/// </remarks>
8283
/// <returns></returns>
84+
[System.Obsolete("This endpoint (GET /artists/{id}/top-tracks) has been removed.")]
8385
Task<ArtistsTopTracksResponse> GetTopTracks(string artistId, ArtistsTopTracksRequest request, CancellationToken cancel = default);
8486

8587

SpotifyAPI.Web/Clients/Interfaces/IAudiobooksClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public interface IAudiobooksClient
4242
/// https://developer.spotify.com/documentation/web-api/reference/get-multiple-audiobooks
4343
/// </remarks>
4444
/// <returns></returns>
45+
[System.Obsolete("This endpoint (GET /audiobooks) has been removed.")]
4546
Task<AudiobooksResponse> GetSeveral(AudiobooksRequest request, CancellationToken cancel = default);
4647

4748
/// <summary>

0 commit comments

Comments
 (0)