我遇到使用登录名和密码登录Skype帐户的问题。我使用来自Skype Web SDK文档的代码:
<script>
//调用应用程序对象 var config = { apiKey:&#39; a42fcebd-5b43-4b89-a065-74450fb91255&#39;,// SDK apiKeyCC:&#39; 9c967f6b-a846-4df2-b43d-5167e47d81e1&#39; // SDK + UI };
var Application;
Skype.initialize({apiKey:config.apiKey},function(api){ window.skypeWebApp = new api.application();
window.skypeWebApp.signInManager.signIn({
username: "test@yandex.ru",
password: "12345678"
}).then(function () {
console.log('Signed in successfully.');
}, function (error) {
console.log('Failed to sign in.');
}).then(reset);
}, function (err) {
console.log(err);
alert('Cannot load the SDK.');
});
发送POST请求,但API不返回任何内容。有人可以建议吗?