I am getting an “Invalid parameter” error.
I followed all the steps from here:
and read most of the thread in this forum but been stuck here for days.
import { ZoomMtg } from '@zoomus/websdk';
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.7/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
console.log('checkSystemRequirements'); console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
const meetConfig = {
apiKey: "my_api_key",
leaveUrl: "https://someurl.com",
userName: "Some Name",
meetingNumber: "0123456789",
passWord: "somepassword",
role: 0,
};
function getSignature(meetConfig) {
fetch(`https://someendpoint.herokuapp.com`, {
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: meetConfig.passWord,
success: function(res){
$('#nav-tool').hide();
console.log('join meeting success');
},
error: function(res) {
console.log(res);
}
}
);
},
error: function(res) {
console.log(res);
}
});
})
}
getSignature(meetConfig);
I have a pro account and used JWT App API and API SECRET for the sample web heroku app from here:
Any help is appreciated, working with ZOOM API has been a nightmare for me…