Skip to content
This repository was archived by the owner on Oct 28, 2020. It is now read-only.

SpotifyAPI-NET modified to work with client-side (WebAssembly) Blazor

License

Notifications You must be signed in to change notification settings

tresoneur/SpotifyAPI-NET

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

386 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpotifyAPI-NET @ WebAssembly

This fork is no longer maintained. The original library is now compatible with client-side Blazor.

A Wrapper for Spotify's Web API, written in .NET, modified to work with client-side (WebAssembly) Blazor

Spotify's Web API

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.

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.

Docs and Usage

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

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

You can support JohnnyCrazy's (original author of SpotifyAPI-NET) work as described here.

About

SpotifyAPI-NET modified to work with client-side (WebAssembly) Blazor

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C# 99.0%
  • Other 1.0%