Skip to content

Comments

Updated Changes#6

Merged
SachinAkash01 merged 11 commits intoballerina-platform:mainfrom
Laavanja19:main
Jul 2, 2025
Merged

Updated Changes#6
SachinAkash01 merged 11 commits intoballerina-platform:mainfrom
Laavanja19:main

Conversation

@Laavanja19
Copy link
Contributor

Purpose

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@Laavanja19 Laavanja19 requested a review from ThisaruGuruge as a code owner July 1, 2025 11:33
@codecov
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.75%. Comparing base (41261dc) to head (c53b8b8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   52.75%   52.75%           
=======================================
  Files           3        3           
  Lines        3829     3829           
  Branches      680      680           
=======================================
  Hits         2020     2020           
  Misses       1809     1809           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

README.md Outdated

3. **Add Scopes**: Make sure your Zoom app has the necessary scopes for the Scheduler API:
* Add `scheduler:read`, `scheduler:write` and `user:read` in the scope
3. **Add scopes**: Make sure your Zoom app has the necessary scopes for the meetings API:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. **Add scopes**: Make sure your Zoom app has the necessary scopes for the meetings API:
3. **Add scopes:** Make sure your Zoom app has the necessary scopes for the meetings API:


3. **Add Scopes**: Make sure your Zoom app has the necessary scopes for the Scheduler API:
* Add `scheduler:read`, `scheduler:write` and `user:read` in the scope
3. **Add scopes**: Make sure your Zoom app has the necessary scopes for the Meetings API:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. **Add scopes**: Make sure your Zoom app has the necessary scopes for the Meetings API:
3. **Add scopes:** Make sure your Zoom app has the necessary scopes for the Meetings API:

Comment on lines 51 to 61
error? updateResult = zoomClient->/meetings/[meetingId].patch(
payload = {
topic: "Updated Topic via Test Ballerina",
startTime: "2025-09-01T15:05:00Z"
}
);
if updateResult is error {
io:println("Failed to update meeting: ", updateResult.message());
} else {
io:println("Meeting ", meetingId, " successfully updated.");
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
error? updateResult = zoomClient->/meetings/[meetingId].patch(
payload = {
topic: "Updated Topic via Test Ballerina",
startTime: "2025-09-01T15:05:00Z"
}
);
if updateResult is error {
io:println("Failed to update meeting: ", updateResult.message());
} else {
io:println("Meeting ", meetingId, " successfully updated.");
}
check zoomClient->/meetings/[meetingId].patch({
topic: "Updated Topic via Test Ballerina",
startTime: "2025-09-01T15:05:00Z"
});
io:println("Meeting ", meetingId, " successfully updated.");

We can use a check expression and remove the if statements here..

@SachinAkash01 SachinAkash01 merged commit 6ccf8f5 into ballerina-platform:main Jul 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants