https://github.com/gearplug/zoom-python
zoom-python is an API wrapper for Zoom, written in Python.
https://github.com/gearplug/zoom-python
api meetings oauth2 python registrants wrapper zoom
Last synced: 9 months ago
JSON representation
zoom-python is an API wrapper for Zoom, written in Python.
- Host: GitHub
- URL: https://github.com/gearplug/zoom-python
- Owner: GearPlug
- License: mit
- Created: 2023-05-26T14:06:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-20T17:28:20.000Z (almost 3 years ago)
- Last Synced: 2025-01-09T18:56:01.848Z (over 1 year ago)
- Topics: api, meetings, oauth2, python, registrants, wrapper, zoom
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zoom-python
 
*zoom-python* is an API wrapper for Zoom, written in Python.
This library uses Oauth2 for authentication.
## Installing
```
pip install zoom-python
```
### Usage
```python
from zoom.client import Client
client = Client(client_id, client_secret, redirect_uri=None)
```
To obtain and set an access token, follow this instructions:
1. **Get authorization URL**
```python
url = client.authorization_url(code_challenge, redirect_uri=None, state=None)
# redirect_uri required if not given in Client.
```
2. **Get access token using code**
```python
response = client.get_access_token(code, code_verifier)
# code_verifier is the same code_challenge
```
3. **Set access token**
```python
client.set_token(access_token)
```
If your access token expired, you can get a new one using refresh token:
```python
response = client.refresh_access_token(refresh_token)
```
And then set access token again...
Read more about Zoom Oauth: https://developers.zoom.us/docs/integrations/oauth/
#### - Get current user
```python
user = client.get_current_user()
```
#### - List Users
```python
users = client.list_users()
```
### Meetings
#### - List meetings
```python
meetings = client.list_meetings()
```
#### - Get a meeting
```python
meeting = client.get_meeting(meeting_id)
```
#### - Create Meeting
```python
meeting = client.create_meeting(
self,
topic: str,
duration: int,
start_time: str,
type: int = 2,
agenda: str = None,
default_password: bool = False,
password: str = None,
pre_schedule: bool = False,
schedule_for: str = None,
timezone: str = None,
recurrence: dict = None,
settings: dict = None,
)
```
More info: https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingCreate
#### - Add meeting registrant (this feature requires premium auth)
```python
meeting = client.add_meeting_registrant(
self,
meeting_id,
email: str,
first_name: str,
last_name: str = None,
address: str = None,
city: str = None,
state: str = None,
zip: str = None,
country: str = None,
phone: str = None,
comments: str = None,
industry: str = None,
job_title: str = None,
org: str = None,
no_of_employees: str = None,
purchasing_time_frame: str = None,
role_in_purchase_process: str = None,
language: str = None,
auto_approve: bool = None,
)
```
More info: https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingRegistrantCreate