Winamp Archieve to Spotify The aim of this side project is collecting mp3 filenames from harddisk and create Spotify Playlist based on selected folder. To use this you need a Spotify Developer Account. To use the Web API, start by creating a Spotify user account (Premium or Free). To do that, simply sign up at https://developer.spotify.com/dashboard After creating a spotify developer account you should register an application through Dashboard.
After these 3 step your application should be created successfully.
After creating you will have ClientID and Client Secret values. After creating app from Edit Settings tab you should set Redirection URLs.
By using https://developer.spotify.com/console/get-current-user/ link you can get your UserID of Spotify User ID.
ClientID, SecretID and UserID should be placed in App.config
After setting these config values application is ready to run. You can reach codes from https://github.com/atahanceylan/winamptospotifyforms You can open solution file(.sln) with Visual Studio or Rider and run.
Here is GUI of WinampToSpotify windows form app:
First step is getting Access Token. After getting access token select folder to process.To simulate Oauth process with callback I used WebView2 control can be used to handle OAuth 2.0 authorization, using Authorization code flow with PKCE. I learned this information from https://melmanm.github.io/misc/2023/02/13/article6-oauth20-authorization-in-desktop-applicaions.html