Spotify应用程序中的Twitter ouath回调
我如何设置twitter回调,它不支持sp:// 我的代码是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) {
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
将为您截获,并且不会实际发生