Create meeting using skype for business online Bad Request Error

纵饮孤独 提交于 2019-12-12 05:48:24

问题


I am trying to create meeting using Skype for business online - SKYPE WEB SDK APIs as bellow.

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);
});

On browser getting bellow error : and bellow error getting displayed in alert.

 Meeting.onlineMeetingUri Error: Error: 
 POST https://webpoolmaain102.infra.lync.com/ucwa/oauth/v1/applications/112122499541/
 onlineMeetings/myOnlineMeetings failed: Bad Request

Any help appriciated. Thanks in advance.


回答1:


Issue resolved with below code, Its something related to syntax.

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);
});

Edit : These two lines have caused the issue and I just commented out them.

 // meeting.expirationTime(new Date + parseInt(expirationTimeInSec));
 // meeting.leaders(leadersSipUris);


来源:https://stackoverflow.com/questions/42529382/create-meeting-using-skype-for-business-online-bad-request-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!