SpotifyAPI-NETStar
🔊 A Client for the Spotify Web API, written in C#/.NET
var spotify = new SpotifyClient("YourAccessToken");
var me = await spotify.UserProfile.Current();
Console.WriteLine($"Hello there {me.DisplayName}");
await foreach(
var playlist in spotify.Paginate(spotify.Playlists.CurrentUsers())
)
{
Console.WriteLine(playlist.Name);
}
Try it out now
- .NET CLI
- Package Manager
- Package Reference
dotnet add package SpotifyAPI.Web --version 6.0.0-beta.7
# Optional Auth module, which includes an embedded HTTP Server for OAuth2
dotnet add package SpotifyAPI.Web.Auth --version 6.0.0-beta.7
Sane Defaults - Easy To Configure
SpotifyAPI-NET
allows you to quickly integrate with Spotify's Web API by supplying sane configuration defaults from the start. Later on, behaviour can be customized using extensive configuration possibilities.
All API Calls Integrated
The Spotify Web API consists of over 74 API calls. SpotifyAPI-NET
provides fully typed requests/responses for all of them.
.NET Standard 2.X
With the support of .NET Standard 2.X, SpotifyAPI-NET
runs on many platforms, including .NET Core, UWP and Xamarin.Forms (Windows, Android, iOS and Mac)
Testable
SpotifyAPI-NET
is built on a modular structure, which allows easy testing through mocks and stubs. Learn more by visiting the Testing Guide