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] |
Maintainer: | Jon Harmon <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9001 |
Built: | 2024-11-15 13:28:58 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". Set the "OAuth allow list" to "http://localhost:8888". You'll
also have to give the app allowed scopes. After you configure your app,
copy/paste the Client ID and Client Secret into the ZOOM_CLIENT_ID
and
ZOOM_CLIENT_ID
environment variables. We recommend placing these
environment variables in your .Renviron
file.
zoom_browse_app_management()
zoom_browse_app_management()
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()