Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
GET https://accounts.spotify.com/authorize/?client_id=5fe01282e44241328a84e7c5cc169165&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&scope=user-read-private%20user-read-email&state=34fFs29kd09

C#
 String SpotifyUrl = "https://accounts.spotify.com/authorize?client_id="+Uri.EscapeDataString("9ac2b............3")
+ "&response_type=code&redirect_uri="
 + Uri.EscapeDataString("http://localhost:8888/callback")
 +"&scope="+Uri.EscapeDataString("user-read-private user-read-email");
                Uri StartUri = new Uri(SpotifyUrl);
                Uri EndUri = new Uri("http://localhost:8888/callback");
#if WINDOWS_PHONE_APP
                WebAuthenticationBroker.AuthenticateAndContinue(StartUri, EndUri, null, WebAuthenticationOptions.None);
#else
                WebAuthenticationResult WebAuthenticationResult = await WebAuthenticationBroker.AuthenticateAsync(
                                                        WebAuthenticationOptions.None,
                                                        StartUri,
                                                        EndUri);
                if (WebAuthenticationResult.ResponseStatus == WebAuthenticationStatus.Success)
                {
                    OutputToken(WebAuthenticationResult.ResponseData.ToString());
                    await GetSpotifyUserNameAsync(WebAuthenticationResult.ResponseData.ToString());
                }



The issuse is" Can't connect to service but I was trying to connect to facebook service then it ok?
https://social.msdn.microsoft.com/Forums/getfile/660576</a>[^]
social.msdn.microsoft.com/Forums/getfile/660577
Posted
Comments
agajjsjs 27-Sep-23 5:08am    
i had this problem before, then i uninstalled the current version of spotify and reinstalled spotify premium apk mod from website modfyp.com, the problem was resolved
Member 16184712 18-Jan-24 3:40am    
Temporary files stored in your browser's cache can sometimes interfere with the OAuth process. Clear your browser cache and try connecting to the Spotify service again. Drift Boss

1 solution

GET https://accounts.spotify.com/authorize/?client_id=5fe01282e44241328a84e7c5cc169165&response_type=code
&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback
&scope=user-read-private%20user-read-email&state=34fFs29kd09
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900