ea70fbc77b
* Add new auth method and api factory for the auth method * Add process documentation * Solve random crash issues related to token collection * Add customizable html responses, add more process control * Add show dialog support, fix nulled html response * Fix false trigger spam of access expiry event * Add auto-retry GetToken, add fire auth fail on timeout * Improve auto-refresh and refresh auth token validity checks * Add ability to change number of get token retries * Add get web API request cancelling * Solve compiler warning * Remove comment links, rename secure auth for clarity * Rename secure auth for clarity in the docs * Improve token swap usage example in docs * Abstract the exchange server doc info for clarity * Fix simontaen SpotifyTokenSwap link * Change access expiry timing to be skippable * Adapt TokenSwap for new convention, separate autorefresh and timer options |
||
---|---|---|
SpotifyAPI.Docs | ||
SpotifyAPI.Web | ||
SpotifyAPI.Web.Auth | ||
SpotifyAPI.Web.Example | ||
SpotifyAPI.Web.Tests | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
donate.svg | ||
LICENSE | ||
publish.cmd | ||
README.md | ||
SpotifyAPI.sln |
SpotifyAPI-NET
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 user’s authorization.
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.
A library providing C# implementations of the 3 supported Authentication modes, including
ImplicitGrantAuth
,AuthorizationCodeAuth
andCredentialsAuth
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!