Web Client SDK documentation has syntax error

Just spotted two syntax error in ZOOM Web Client SDK - This page to be exact .

const meetConfig = {
	apiKey: '3239845720934223459'***,***
	meetingNumber: '123456789',
	leaveUrl: 'https://yoursite.com/meetingEnd',
	userName: 'Firstname Lastname',
	passWord: 'password',
	role: 1 // 1 for host
};

Comma is missing after apiKey

function getSignature(meetConfig) {

fetch(`${YOUR_SIGNATURE_ENDPOINT}`, {
    method: 'POST',
    body: JSON.stringify({ meetingData: meetConfig })
})
.then(result => result.text())
.then(response => {
    ZoomMtg.init({
        leaveUrl: meetConfig.leaveUrl,
        isSupportAV: true,
        success: function() {
            ZoomMtg.join({
                signature: response,
                apiKey: meetConfig.apiKey,
                meetingNumber: meetConfig.meetingNumber,
                userName: meetConfig.userName,
                // password optional; set by Host
                passWord: meetConfig.passWord,
                error(res) { 
                    console.log(res) 
                }
            })		
        }
    })

})
}

One ) is missing…

Hi. @meera.datey,

Thank you for posting in the Developer Forum. I will work with our internal to update our documentation.

Thanks again for letting us know about this, we really appreciate the heads up!

Best,
Donte

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.