https://github.com/double-charburger/zoomapi
Python wrapper around the Zoom.us REST API v2.
This work is based on crista/zoomapi and Zoomus.
- Group: Double Char
- Members:
- Wen-Chia Yang
- Junxian Chen
Note, as this library heavily depends on the requests library, official compatibility is limited to the official compatibility of requests
.
First, please create a "bot.ini" file and set OAuth client ID and secret, port and browser path if possible.
Then, nagivate to the root directory of the project, and run:
python3 bots/botm1.py
There are 4 options in the main menu which looks like this:
# Main Menu #
[1] Execute a MEANINGFUL set of Chat Channel Functions
[2] Execute a single Chat Channel Function (debug only)
[3] Execute a MEANINGFUL set of Chat Message Functions
[4] Execute a single Chat Message Function (debug only)
[0] Quit
We recommend using option 1 and 3 to test all the functions that we have implemented. Option 1 and option 4 are for debugging purpose only so please advance with caution.
After selecting option 1 or 3, please follow the instructions and the bot should work fine.
import json
from zoomapi import OAuthZoomClient
client = OAuthZoomClient('CLIENT_ID', 'CLIENT_SECRET', 'REDIRECT_URL')
user_response = client.user.get(id='me')
user = json.loads(user_response.content)
print(user)
What one will note is that the returned object from a call using the client is a requests Response
object. This is done so that if there is any error working with the API that one has complete control of handling all errors. As such, to actually get the list of users in the example above, one will have to load the JSON from the content of the Response
object that is returned.
with JWTZoomClient('API_KEY', 'API_SECRET') as client:
user_list_response = client.users.list()
...
- client.contacts.list(...)
- client.contacts.list_external(...)
- client.chat_channels.list(...)
- client.chat_channels.create(...)
- client.chat_channels.update(...)
- client.chat_channels.delete(...)
- client.chat_channels.get(...)
- client.chat_channels.list_members(...)
- client.chat_channels.invite_members(...)
- client.chat_channels.join(...)
- client.chat_channels.leave(...)
- client.chat_channels.remove_member(...)
- client.chat_messages.list(...)
- client.chat_messages.post(...)
- client.chat_messages.update(...)
- client.chat_messages.delete(...)
- client.user.create(...)
- client.user.cust_create(...)
- client.user.update(...)*
- client.user.list(...)
- client.user.pending(...)
- client.user.get(...)
- client.user.get_by_email(...)
- client.meeting.get(...)
- client.meeting.end(...)
- client.meeting.create(...)
- client.meeting.delete(...)
- client.meeting.list(...)
- client.meeting.update(...)
- client.report.get_account_report(...)
- client.report.get_user_report(...)
- client.webinar.create(...)
- client.webinar.update(...)
- client.webinar.delete(...)
- client.webinar.list(...)
- client.webinar.get(...)
- client.webinar.end(...)
- client.webinar.register(...)