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()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)