Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking changes in 0.83.0 #374

Open
Jericho opened this issue Nov 1, 2024 · 0 comments
Open

Breaking changes in 0.83.0 #374

Jericho opened this issue Nov 1, 2024 · 0 comments
Assignees
Labels
Documentation Improvements or additions to documentation
Milestone

Comments

@Jericho
Copy link
Owner

Jericho commented Nov 1, 2024

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:

var newInstantMeeting = await client.Meetings.CreateInstantMeetingAsync(myUser.Id, "Instant meeting title", "The agenda", "p@ss!w0rd", settings, trackingFields, null, cancellationToken).ConfigureAwait(false);
var newScheduledMeeting = await client.Meetings.CreateScheduledMeetingAsync(myUser.Id, "Scheduled meeting title", "The agenda", start, duration, TimeZones.UTC, "p@ss!w0rd", settings, trackingFields, null, cancellationToken).ConfigureAwait(false);
var newRecurringMeeting = await client.Meetings.CreateRecurringMeetingAsync(myUser.Id, "Recurring meeting title", "The agenda", start, duration, recurrenceInfo, TimeZones.UTC, "p@ss!w0rd", settings, trackingFields, null, cancellationToken).ConfigureAwait(false);

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 password
var newInstantMeeting = await client.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 meeting
var newScheduledMeeting = await client.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 meeting
var newRecurringMeeting = await client.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..

@Jericho Jericho added the Documentation Improvements or additions to documentation label Nov 1, 2024
@Jericho Jericho added this to the 0.83.0 milestone Nov 1, 2024
@Jericho Jericho self-assigned this Nov 1, 2024
@Jericho Jericho pinned this issue Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant