| Title: | Zoom API in R |
|---|---|
| Description: | A consistent interface to the Zoom API, to allow management of Zoom conferencing from R. |
| Authors: | Jon Harmon [aut, cre] (ORCID: <https://orcid.org/0000-0003-4781-4346>) |
| Maintainer: | Jon Harmon <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.0.0.9001 |
| Built: | 2026-10-02 19:14:43 UTC |
| Source: | https://github.com/jonthegeek/zoomer |
OAuth client documentation
A Zoom httr2::oauth_client().
OAuth request authentication documentation
token |
A Zoom API OAuth token, or the |
An httr2::request() with Zoom OAuth authentication information.
OAuth token documentation
A Zoom httr2::oauth_token(), invisibly.
Load or generate a Zoom OAuth token for use in the other functions in this package. The primary use of this function is to cache values early in a script (so the user can walk away). Otherwise the other functions in this package will prompt for authentication when needed. Once the values are cached, the rest of this package will use them by default for that client.
zoom_authenticate( client = zoom_client(), cache_key = getOption("zoom.cache_key", NULL), scopes = "recording:read", force = FALSE, refresh_token = NULL )zoom_authenticate( client = zoom_client(), cache_key = getOption("zoom.cache_key", NULL), scopes = "recording:read", force = FALSE, refresh_token = NULL )
client |
A Zoom OAuth client created with |
cache_key |
If you are authenticating with multiple users using the same client, use this key to differentiate between those users. |
scopes |
A character vector of allowed scopes, such as "recording:read". |
force |
A logical indicating whether to force a refresh of the token. |
refresh_token |
A refresh token associated with this |
A Zoom httr2::oauth_token(), invisibly.
Launch the Zoom "Created Apps" page (where you can configure OAuth 2.0 Clients). Navigate to "Develop > Build App" if you don't have an app, and choose "OAuth".
zoom_browse_app_management()zoom_browse_app_management()
One-time relay setup (Zoom no longer accepts localhost redirect URIs):
Create a Cloudflare Worker using the
script in system.file("cloudflare/oauth-relay.js", package = "zoomer").
The Worker reads the local port from the OAuth state parameter and
issues a 302 redirect to http://localhost:{port}/callback.
Set the Zoom app's OAuth Redirect URL to your Worker's URL
(e.g. https://zoomer-oauth.your-handle.workers.dev/callback).
Add options(zoom.redirect_url = "https://...") to your .Rprofile.
Optionally set options(zoom.redirect_port = 1410L) if you need a
non-default local port.
After configuring your app, copy/paste the Client ID and Client Secret into
the ZOOM_CLIENT_ID and ZOOM_CLIENT_SECRET environment variables. We
recommend placing these in your .Renviron file.
The url of the "Created Apps" page, invisibly.
zoom_app_mgmt_url <- zoom_browse_app_management() # Copy/paste values from your client. Sys.setenv(ZOOM_CLIENT_ID = "raNdOMletTeRS") Sys.setenv(ZOOM_CLIENT_SECRET = "RanDomleTTerSandNumb3rs")zoom_app_mgmt_url <- zoom_browse_app_management() # Copy/paste values from your client. Sys.setenv(ZOOM_CLIENT_ID = "raNdOMletTeRS") Sys.setenv(ZOOM_CLIENT_SECRET = "RanDomleTTerSandNumb3rs")
Builds the OAuth client object for Zoom apis.
zoom_client( client_id = Sys.getenv("ZOOM_CLIENT_ID"), client_secret = Sys.getenv("ZOOM_CLIENT_SECRET") )zoom_client( client_id = Sys.getenv("ZOOM_CLIENT_ID"), client_secret = Sys.getenv("ZOOM_CLIENT_SECRET") )
client_id |
A Zoom OAuth App client ID. We recommend you save it as an
environment variable, |
client_secret |
A Zoom OAuth App client secret. We recommend you save it
as an environment variable, |
A Zoom httr2::oauth_client().
zoom_client <- zoom_client()zoom_client <- zoom_client()