无法连接服务(Spotify OAuth服务)? [英] Can't connect to service(Spotify OAuth service)?

查看:207
本文介绍了无法连接服务(Spotify OAuth服务)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获取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



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

 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());
                }







问题是无法连接到服务,但我正在尝试连接到Facebook服务然后好吗?

https://social.msdn.microsoft.com/Forums/getfile/660576</a> 的[< a href =https://social.msdn.microsoft.com/Forums/getfile/660576</a>target =_ blanktitle =New Window> ^ ]

social.msdn.microsoft.com/Forums/getfile/660577

推荐答案

获取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
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


这篇关于无法连接服务(Spotify OAuth服务)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆