-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Tried using the sample code to create a meeting, but it doesn't work.
console.log('hello from Node.js')
const WebExClient = require('webex-api-client');
const securityContext = {
webExID: 'ID',
password: 'password',
siteName: 'site'
};
const requestBuilder = new WebExClient.Builder(securityContext, 'https://site.webex.com/WBXService/XMLService');
const createMeeting =
requestBuilder
.metaData({
confName: 'Sample Meeting',
meetingType: 1,
}).accessControl({
listStatus: 'PUBLIC',
registration: false,
sessionPassword: '1234567890'
}).schedule({
startDate: new Date(), // today
openTime: 900,
duration: 30,
timeZoneID: 5
})
.setService('CreateMeeting')
.build();
// Initiate meeting whenever you are ready
createMeeting
.exec()
.then((resp) => console.log(resp));
I started adding the fields that it was throwing errors about, but got stuck on a ListStatus
error. With or without adding list status (it's shown above), it still throws the following error:
<?xml version="1.0" encoding="UTF-8"?> <serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common"><serv:header><serv:response><serv:result>FAILURE</serv:result><serv:reason>validation: unable to find FieldDescriptor for 'listStatus' in ClassDescriptor of accessControlType</serv:reason><serv:gsbStatus>PRIMARY</serv:gsbStatus><serv:exceptionID>999999</serv:exceptionID></serv:response></serv:header><serv:body><serv:bodyContent/></serv:body></serv:message>