我正在尝试使用Skype for business创建会议 - 下面是SKYPE WEB SDK API。
var meeting = skyon.skypeWebApp.conversationsManager.createMeeting();
meeting.subject('Planning meeting');
meeting.accessLevel("Everyone");
meeting.expirationTime(new Date + 24 * 3600 * 5);
meeting.onlineMeetingUri.get().then( function(uri) {
alert("Meeting successfully Created : "+uri);
var conversation = app.conversationsManager.getConversationByUri(uri);
},function (error) {
alert("Meeting.onlineMeetingUri Error: "+error);
});
Meeting.onlineMeetingUri Error: Error:
POST https://webpoolmaain102.infra.lync.com/ucwa/oauth/v1/applications/112122499541/
onlineMeetings/myOnlineMeetings failed: Bad Request
任何帮助appriciated。 提前谢谢。
答案 0 :(得分:0)
使用以下代码解决了问题,这与语法有关。
const conversationsManager = skyon.skypeWebApp.conversationsManager;
const subject = "testing";
alert('Scheduling Meeting...');
// @snippet
const meeting = conversationsManager.createMeeting();
meeting.subject(subject);
meeting.accessLevel('Everyone');
meeting.onlineMeetingUri.get().then(uri => {
alert("uri : "+uri);
alert("meeting.joinUrl : " + meeting.joinUrl());
}, error => {
alert(error);
});
修改: 这两行导致了这个问题,我只是将它们注释掉了。
// meeting.expirationTime(new Date + parseInt(expirationTimeInSec));
// meeting.leaders(leadersSipUris);