Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spotify应用程序中的Twitter ouath回调_Spotify - Fatal编程技术网

Spotify应用程序中的Twitter ouath回调

Spotify应用程序中的Twitter ouath回调,spotify,Spotify,我如何设置twitter回调,它不支持sp:// 我的代码是 auth.showAuthenticationDialog('https://api.twitter.com/oauth/authorize?oauth_token=' + result.oauth_token, 'sp://geoholium',{ onSuccess: function(response) {

我如何设置twitter回调,它不支持sp:// 我的代码是

auth.showAuthenticationDialog('https://api.twitter.com/oauth/authorize?oauth_token=' + result.oauth_token, 'sp://geoholium',{ 
                            onSuccess: function(response) {
                                authenticated = true;
                                access_token = response.split('=')[1];
                            },
                            onFailure: function(error) {
                            },
                            onComplete: function() { }
                        });

auth.showAuthenticationDialog
的工作原理是监视对第二个参数中给出的URL的请求,然后拦截它们并在回调中将其传递给您

记住这一点,您可以将回调URL设置为Twitter API所需的任何内容,例如,
http://mywebsite.com/twitterIsDone
-请求
http://mywebsite.com/twitterIsDone
将为您截获,并且不会实际发生