🔉 A Client for the Spotify Web API, written in C#/.NET
Go to file
dependabot-preview[bot] 22939d7d02
Bump Microsoft.NET.Test.Sdk from 16.5.0 to 16.6.0 (#439)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 16.5.0 to 16.6.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Commits](https://github.com/microsoft/vstest/compare/v16.5.0...v16.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-21 09:05:58 +02:00
.vscode Added launch/build support for examples 2020-03-26 18:33:45 +01:00
SpotifyAPI.Docs Fix getting_started.md links and table formatting (#438) 2020-04-16 21:54:15 +02:00
SpotifyAPI.Web OpenBrowser returns false if it was unsuccessful 2020-03-26 18:34:32 +01:00
SpotifyAPI.Web.Auth OpenBrowser returns false if it was unsuccessful 2020-03-26 18:34:32 +01:00
SpotifyAPI.Web.Examples.ASP VSCode Formatter - Also bumped tests to net core 3.1 2020-03-09 20:47:39 +01:00
SpotifyAPI.Web.Examples.CLI VSCode Formatter - Also bumped tests to net core 3.1 2020-03-09 20:47:39 +01:00
SpotifyAPI.Web.Tests Bump Microsoft.NET.Test.Sdk from 16.5.0 to 16.6.0 (#439) 2020-04-21 09:05:58 +02:00
.gitattributes Initialisieren Sie das Commit, um ".gitIgnore"- und ".gitAttribute"-Standarddateien hinzuzufügen. 2014-01-07 16:25:32 +01:00
.gitignore VSCode Formatter 2020-03-09 20:48:14 +01:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-06-21 21:09:39 +02:00
donate.svg Added donation link 2018-03-26 01:13:14 +02:00
LICENSE Initial commit 2014-01-28 12:01:07 -08:00
publish.cmd Publish to GitHub Package Registry as well 2019-10-15 21:41:41 +02:00
README.md Remove Gitter 2020-04-19 13:01:57 +02:00
SpotifyAPI.sln Restructured Examples and added new one 2019-11-12 15:02:36 +01:00

SpotifyAPI-NET

Build status

A Wrapper for Spotify's Web API, written in .NET

Spotify's Web API (link)

Based on simple REST principles, our Web API endpoints return metadata in JSON format about artists, albums, and tracks directly from the Spotify catalogue. The API also provides access to user-related data such as playlists and music saved in a “Your Music” library, subject to users authorization.

SpotifyAPI.Web Nuget SpotifyAPI.Web

A wrapper around Spotify's Web API, providing sync and async methods to query all possible endpoints. Results are returned as typed class instances, allowing property-based access.

SpotifyAPI.Web.Auth Nuget SpotifyAPI.Web.Auth

A library providing C# implementations of the 3 supported Authentication modes, including ImplicitGrantAuth, AuthorizationCodeAuth and CredentialsAuth

Docs and Usage

More Information, Installation-Instructions, Examples and API-Reference can be found at github.io/SpotifyAPI-Net/

NuGet

You can add the API to your project via nuget-package:

Install-Package SpotifyAPI.Web
Install-Package SpotifyAPI.Web.Auth

//or

Install-Package SpotifyAPI.Web -pre
Install-Package SpotifyAPI.Web.Auth -pre

Example

using SpotifyAPI.Web.Enums;
using SpotifyAPI.Web.Models;

public static async void Example()
{
  SpotifyWebAPI api = new SpotifyWebAPI
  {
      AccessToken = "XX?X?X",
      TokenType = "Bearer"
  };
  
  PrivateProfile profile = await api.GetPrivateProfileAsync();
  if(!profile.HasError()) {
    Console.WriteLine(profile.DisplayName);
  }
}

Donations

If you want to support this project or my work in general, you can donate a buck or two via the link below. However, this will be always optional!

Donate Link