ASP.NET
#
DescriptionThis example is based on ASP .NET Core. It uses Authorization Code
under the hood with the help of AspNet.Security.OAuth.Spotify
. It stores the access token in the current user session (cookie-based) and allows to refresh tokens when they expire. Two pages are implemented:
- Home shows your current playlists via pagination
- Profile shows your current profile information
#
Run itBefore running it, make sure you created an app in your spotify dashboard and https://localhost:5001
is a redirect uri of it.
# Assumes linux and current working directory is the cloned repositorycd SpotifyAPI.Web.Examples/Example.ASPdotnet restore
SPOTIFY_CLIENT_ID=YourClientId SPOTIFY_CLIENT_SECRET=YourClientSecret dotnet run
# Visit https://localhost:5001