You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a result of breaking changes introduced in 0.83.0 (see #281 and #373 ), there's a good chance you will get a compile time error if you invoke Meetings.CreateInstantMeetingAsync, Meetings.CreateScheduledMeetingAsync or Meetings.CreateRecurringMeetingAsync. The error will be similar to:
CS1503 Argument 8: cannot convert from 'System.Threading.CancellationToken' to 'bool'
You will get this error if your code contains a line similar to one of the following:
This error is due to the fact that we added new boolean parameters that allow you to specify whether you want Zoom to generate a default password (rather than specifying you own password) and whether you want to create a prescheduled meeting via the GSuite app (please note that this only applies to scheduled meetings and recurring meetings with no fixed time).
The solution is simply to add the true or false values to the line where you invoke CreateInstantMeetingAsync, CreateScheduledMeetingAsync or CreateRecurringMeetingAsync.
Here are a few examples:
// Notice the boolean parameter specified before the cancellation token is set to 'true'. It indicates that I want Zoom to generate the passwordvarnewInstantMeeting=awaitclient.Meetings.CreateInstantMeetingAsync(myUser.Id,"Instant meeting title","The agenda",null,settings,trackingFields,null,true,cancellationToken).ConfigureAwait(false);// Notice the two boolean parameters specified before the cancellation token are set to 'true' and 'false' respectively. They indicates that I want Zoom to generate the password and I do not want to create a GSuite preschedule meetingvarnewScheduledMeeting=awaitclient.Meetings.CreateScheduledMeetingAsync(myUser.Id,"Scheduled meeting title","The agenda",start,duration,TimeZones.UTC,null,settings,trackingFields,null,true,false,cancellationToken).ConfigureAwait(false);// Notice the two boolean parameters specified before the cancellation token are both set to 'false'. They indicates that I do not want Zoom to generate the password and I do not want to create a GSuite preschedule meetingvarnewRecurringMeeting=awaitclient.Meetings.CreateRecurringMeetingAsync(myUser.Id,"ZoomNet Integration Testing: recurring meeting","The agenda",start,duration,recurrenceInfo,TimeZones.UTC,"p@ss!w0rd",settings,trackingFields,null,false,false,cancellationToken).ConfigureAwait(false);
One last thing to note: you can EITHER provide your own password when creating a meeting OR you can ask Zoom to generate a password for you but you can't do both. In other words, you must set the password parameter to null if you set the generatePassword parameter to true.
If you set the password parameter to a non-null value and you set the generatePassword parameter to true, ZoomNet will throw an ArgumentException with the following message: generatePassword and password are mutually exclusive. Either specify a password and set generatePassword to false or set password to null and set generatePassword..
The text was updated successfully, but these errors were encountered:
As a result of breaking changes introduced in 0.83.0 (see #281 and #373 ), there's a good chance you will get a compile time error if you invoke
Meetings.CreateInstantMeetingAsync
,Meetings.CreateScheduledMeetingAsync
orMeetings.CreateRecurringMeetingAsync
. The error will be similar to:You will get this error if your code contains a line similar to one of the following:
This error is due to the fact that we added new boolean parameters that allow you to specify whether you want Zoom to generate a default password (rather than specifying you own password) and whether you want to create a prescheduled meeting via the GSuite app (please note that this only applies to scheduled meetings and recurring meetings with no fixed time).
The solution is simply to add the
true
orfalse
values to the line where you invoke CreateInstantMeetingAsync, CreateScheduledMeetingAsync or CreateRecurringMeetingAsync.Here are a few examples:
One last thing to note: you can EITHER provide your own password when creating a meeting OR you can ask Zoom to generate a password for you but you can't do both. In other words, you must set the
password
parameter tonull
if you set thegeneratePassword
parameter totrue
.If you set the
password
parameter to a non-null value and you set thegeneratePassword
parameter totrue
, ZoomNet will throw anArgumentException
with the following message:generatePassword and password are mutually exclusive. Either specify a password and set generatePassword to false or set password to null and set generatePassword.
.The text was updated successfully, but these errors were encountered: