🔉 A Client for the Spotify Web API, written in C#/.NET
Go to file
2020-06-04 18:20:29 +02:00
.vscode Started with Documentation #451 2020-05-28 16:30:17 +02:00
SpotifyAPI.Docs Executive permissions for the docs build script 2020-06-04 18:20:29 +02:00
SpotifyAPI.Web Merge branch 'v6' 2020-06-04 15:43:25 +02:00
SpotifyAPI.Web.Auth Enabled nullable for most projects 2020-05-25 18:00:47 +02:00
SpotifyAPI.Web.Examples Merge branch 'v6' 2020-06-04 15:43:25 +02:00
SpotifyAPI.Web.Tests Merge branch 'v6' 2020-06-04 15:43:25 +02:00
.editorconfig Added better Pagination support via IAsyncEnumerable 2020-05-20 20:59:11 +02:00
.gitattributes Initialisieren Sie das Commit, um ".gitIgnore"- und ".gitAttribute"-Standarddateien hinzuzufügen. 2014-01-07 16:25:32 +01:00
.gitignore Ignore launch settings 2020-05-16 22:33:05 +02: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 Since we did a rewrite: Change license to MIT :party: #451 2020-05-30 23:33:53 +02:00
omnisharp.json Started with Unit Tests and added .editorconfig for syntax settings 2020-05-02 13:04:26 +02:00
publish.cmd Added BlazorWASM example 2020-06-04 14:42:16 +02:00
README.md README example adapted, fixes #443 2020-04-25 23:10:28 +02:00
SpotifyAPI.sln Added more example docs 2020-06-04 15:24:13 +02: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"
  };
  
  FullTrack track = await api.GetTrackAsync("1eV81a6H4xDdpi8r2C4tQT");
  if(!track.HasError()) {
    Console.WriteLine(track.Name);
  }
}

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