Dar*_*han 5 javascript skype-for-business skypedeveloper
我正在尝试使用Skype SDK安排会议。我给出的代码与示例中所示的相同。但是我没有收到任何错误或代码来安排会议。请仔细检查代码,如果下面的代码有任何错误,请通知我。我坚持这个
$('#authentication').click(function() {
var client_id = "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx";
window.sessionStorage.setItem('client_id', client_id);
var href = 'https://login.microsoftonline.com/common/oauth2/authorize?response_type=token&client_id=';
href += client_id + '&resource=https://webdir.online.lync.com&redirect_uri=' + window.location.href;
window.location.href = href;
});
$('#createmeeting').click(function() {
var client;
var conversation;
var Application;
console.log(sessionStorage.getItem('client_id'));
Skype.initialize({ apiKey: 'a42fcebd-5b43-4b89-a065-74450fb91255' }, function (api) {
Application = api.application;
client = new Application();
console.log('client created');
var meeting = client.conversationsManager.createMeeting();
meeting.subject('Planning meeting');
meeting.expirationTime(new Date + 24 * 3600 * 5);
meeting.onlineMeetingUri.get().then(uri => {
var conversation = client.conversationsManager.getConversationByUri(uri);
console.log(';'); // even this is not showing
}, function (error) {
console.log(error);
});
console.log(conversation);
}, function (err) {
console.log(err);
alert('Cannot load the SDK.');
});
});
Run Code Online (Sandbox Code Playgroud)
小智 0
enter code here\nRun Code Online (Sandbox Code Playgroud)\n\n新日期 + 24 * 3600 * 5 ?\n结果为“2019 年 5 月 16 日星期四 09:48:15 GMT+0800 (\xe4\xb8\xad\xe5\x9b\xbd\xe6\xa0\x87\xe5\x87\x86\xe6\x97\xb6\xe9\ x97\xb4)24 * 3600 * 5"
\n| 归档时间: |
|
| 查看次数: |
83 次 |
| 最近记录: |