-
Notifications
You must be signed in to change notification settings - Fork 1
Updated Changes #6
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9d944ae
README.md
Laavanja19 f7b02cb
README.md
Laavanja19 43b30a6
README.md
Laavanja19 0ec7e4f
tests.bal
Laavanja19 a223cc3
README.md
Laavanja19 6fb83d5
create new meeting
Laavanja19 552fb2e
list all meetings
Laavanja19 6455dbf
main.bal
Laavanja19 05471fc
README.md
Laavanja19 bb347c7
README.md
Laavanja19 c53b8b8
main.bal
Laavanja19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| ## Overview | ||||||
| [Zoom](https://www.zoom.com/) is a widely-used video conferencing service provided by Zoom Video Communications, enabling users to host and attend virtual meetings, webinars, and collaborate online. | ||||||
|
|
||||||
| The `ballerinax/zoom.meetings` package offers APIs to connect and interact with Zoom API endpoints, specifically based on Zoom API v2 (https://developers.zoom.us/docs/api/meetings/). | ||||||
| The `ballerinax/zoom.meetings` package offers APIs to connect and interact with Zoom API endpoints, specifically based on [Zoom API v2](https://developers.zoom.us/docs/api/meetings/). | ||||||
|
|
||||||
| ## Setup guide | ||||||
|
|
||||||
|
|
@@ -31,22 +31,22 @@ To use the Zoom meetings connector, you must have access to the Zoom API through | |||||
|
|
||||||
| 2. **Set Redirect URI**: Add your application's redirect URI | ||||||
|
|
||||||
| 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: | ||||||
|
||||||
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -46,6 +46,21 @@ public function main() returns error? { | |||||||||||||||||||||||||||||||||
| io:println("-------------------------------"); | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
| meetings:InlineResponse20028Meetings firstMeeting = meetings[0]; | ||||||||||||||||||||||||||||||||||
| int meetingId = <int>firstMeeting.id; | ||||||||||||||||||||||||||||||||||
| 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."); | ||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
| 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..
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.