Skip to main content

Zoom Logo

WARNING: Version 1.0.0 introduces breaking change. The library now only supports OAUTH tokens, since Zoom is deprecating the JWT support as of June 1, 2023

On the bright side, pyzoom can handle the entire OAUTH flow for you!

Python wrapper for Zoom API

PyPI - Python Version Code style: black PyPI PyPI - License PyPI - Downloads

Links:

Installation

Using pip:

pip install -U pyzoom

Using poetry:

poetry add pyzoom

OAUTH Authorization Wizard

pyzoom can handle the entire oauth flow for you. Yes, including starting a web server to receive the callback. And you can use it eiter interactively from the terminal, or from within the code. To run from code:

from pyzoom import oauth_wizard

tokens = oauth_wizard("APP_CLIENT_ID", "APP_CLIENT_SECRET")

To run from terminal (in your virtual environment):

python -c "from pyzoom import oauth_wizard; oauth_wizard()"

This will launch the wizard in interactive mode:

  • asking for input of your client id and secret
  • starting the web server to capture callback code
  • opening the browser for you to authorize on Zoom
  • capturing the incoming code and running request_tokens with it

As the result it will print the credentials (if all was ok).

No external libraries were used to start the server and capture the code, only what's built into python.

Requesting Tokens

Once your user has accepted integration on the zoom side and you received the code from the redirect:

from pyzoom import request_tokens

tokens = request_tokens("APP_CLIENT_ID", "APP_CLIENT_SECRET", "APP_REDIRECT_URL", "CALLBACK_CODE"):

The result of a successful request will be a map with the tokens.

Refreshing tokens

from pyzoom import refresh_tokens

tokens = refresh_tokens("APP_CLIENT_ID", "APP_CLIENT_SECRET", "USER_REFRESH_TOKEN")

The result of a successful request will be a map with the new tokens. Remember, that the refresh token will also be updated, which will invalidate the token you just used.

Usage

Basic instantiation:

from pyzoom import ZoomClient

client = ZoomClient('YOUR_ZOOM_ACCESS_TOKEN')

Optionally you can specify a different base URL either upon instantiation or any time later:

client = ZoomClient ('YOU_ZOOM_ACCCESS_TOKEN', base_url="https://api.zoomgov.us/v2")

Instantiation from environment variables

You can also create an instance of client when access key in environment variables ZOOM_ACCESS_TOKEN. Since the access token expires after one hour, this method is not a good idea any more.

from pyzoom import ZoomClient

client = ZoomClient.from_environment()

Meetings

Create meeting, update meeting and add registrant

from pyzoom import ZoomClient
from datetime import datetime as dt

client = ZoomClient.from_environment()

# Creating a meeting
meeting = client.meetings.create_meeting('Auto created 1', start_time=dt.now().isoformat(), duration_min=60, password='not-secure')

# Update a meeting
meeting = client.meetings.update_meeting('Auto updated 1', meeting_id = meeting.id ,start_time=dt.now().isoformat(), duration_min=60,password='not-secure')

# Adding registrants
client.meetings.add_meeting_registrant(meeting.id, first_name='John', last_name='Doe', email='john.doe@example.com')

You can use client.meetings.add_and_confirm_registrant to also confirm auto added registrants to a closed meeting.

Raw API methods

You can also use the library for making raw requests to the API:

from pyzoom import ZoomClient

client = ZoomClient.from_environment()

# Get self
response = client.raw.get('/users/me')

# Get all pages of meeting participants
result_dict = client.raw.get_all_pages('/past_meetings/{meetingUUID}/participants')

Packaging notice

This project uses the excellent poetry for packaging. Please read about it and let's all start using pyproject.toml files as a standard. Read more:

Support

Buy Me A Coffee

Versioning

The project uses break versioning, meaning that upgrading from 1.0.x to 1.0.y will always be safe, upgrade to 1.y.0 might break something small, and upgrade to y.0.0. will break almost everything. That was a versioning spec in one sentence, by the way.

Disclaimer

This library is not related to Zoom Video Communications, Inc. It's an open-source project that aims to simplify working with this suddenly very popular service.

Metadata

Release files for pyzoom 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyzoom 1.0.8
File Size Uploaded
pyzoom-1.0.8.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyzoom 1.0.8
File Interpreter ABI Platform
pyzoom-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / pyzoom-1.0.8.tar.gz

Download URL pyzoom-1.0.8.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6bd972ca537a2a13ff97401616f85bfb77096ed294dacb0a607c95fd57f4e919
BLAKE2b-256 checksum
How to use checksums
a29f0ef7d403852150ee4d9e5478ffe31b70de45b4101db62ffb6512a7333347
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.7.17 Linux/6.5.0-1015-azure

Release files / pyzoom-1.0.8-py3-none-any.whl

Download URL pyzoom-1.0.8-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcc1df2fee2954c64cdb230479ac12f7b8b23e99dc66d66118bd0e7c721dc83c
BLAKE2b-256 checksum
How to use checksums
c5e87738e449cd28a0ae68b916fe59dc1d93a4f63b3f9e8139875804bd7fddad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.7.17 Linux/6.5.0-1015-azure

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page