:sound: A Client for the Spotify Web API, written in C#/.NET
HtmlDescription
to all shows/episodes ( #944 )TotalEpisodes
to all showsCancellationToken
parameter, which can be used to prematurely cancel the request (Thanks to @esskar #813 )RemoveLibrary
endpoints silently stopped accepting ids
in the body paremter, so we moved them to the query parametersPlaylistGetRequest
and PlaylistGetItemRequest
now use List
for the type of the fields
value. We can now use AddRange
etc. to add multiple entries at onceAll API Endpoint calls have a new CancellationToken
parameter, which is optional however. Thus, the type signatures of the methods have changed.
ErrorReceived
event to the auth server of SpotifyAPI.Web.Auth
. An example can be found in the docs
NextPage
and PreviousPage
.var browse = await spotify.Browse.GetCategoryPlaylists("at_home", new CategoriesPlaylistsRequest { Limit = 10 });
var browse2 = await spotify.NextPage(browse.Playlists);
An item with the same key has already been added. Key: limit
(#567 )Paginate
methods were only available in .NET Standard 2.1. It's now available for all versions > .NET Standard 2.1 (e.g .NET 5)🎉 The initial, stable release of SpotifyAPI.Web and SpotifyAPI.Web.Auth Version 6! 🎉
Thank you for all reports in the beta phase 😊. The last beta release was about 3 months ago and it's time to hit stable!
.NET 5.0
and .NET Standard 2.X
, which includes all major platforms, including mobile:
.NET Framework
UWP
.NET Core
Xamarin.Forms
HTTPClient
, but feel free to bring your own!ASP .NET
and CLI
appsThere is a migration guide from 5.x to 6.x here
If there are open questions regarding migration path, feel free to open an issue!
New Code base - New License. The project is now licensed under the MIT
instead of the GPL V2
. More freedom for your projects!
The documentation site has been built from the ground up. While there is no online method documentation like before (refer to inline XML docs), there are now extensive guides and example infos available.
https://johnnycrazy.github.io/SpotifyAPI-NET/
Examples were a problem in the past. From now, v6 offers examples for every major .NET framework and application type (web, desktop, cli app) located in the SpotifyAPI.Web.Examples
directory. There is still some documentation and linking (between documentation and github) to be done. Also, it's on the roadmap to create more advanced examples.
Please provide any feedback, problems and ideas in #451 - Thank you!
SaveTracks/SaveShows/SaveAlbums
endpoint always returning false ( part of #496 )Playlists.RemoveItems
now also accepts a list of positions. This allows to delete local files in playlists. A snapshotID MUST be provided.var playlist = await spotify.Playlists.Get("YourPlaylistID");
var test = await spotify.Playlists.RemoveItems("YourPlaylistID", new PlaylistRemoveItemsRequest
{
Positions = new List<int> { 0 },
SnapshotId = playlist.SnapshotId
});