Commit 6f96980e authored by Stan Hu's avatar Stan Hu

Update README.md to reflect service account

parent 94687c5d
......@@ -5,6 +5,9 @@ Google Drive. We originally did this because the Zoom storage was
limited and costly, but we continue do this to enable all team members to
view the videos.
NOTE: The script will **only** copy meetings that have `[REC]` in the
meeting title.
NOTE: This script no longer purges videos from Zoom, and it does not
retain state. Because of this, the script will scan yesterday's videos and
only upload them if they do not exist on Google Drive already. If the
......@@ -21,7 +24,7 @@ variables do not exist, Zoom will attempt to load them from config files.
|--------|-----------|
|ZOOM_API_KEY|Zoom API client key|
|ZOOM_API_SECRET|Zoom API secret key|
|GOOGLE_DRIVE_CONFIG|Google Drive credentials|
|GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY|Google Drive credentials|
If `ZOOM_API_KEY` and `ZOOM_API_SECRET` are not available, the script
will attempt to load `zoom_sync.yml`:
......@@ -32,20 +35,23 @@ api_key: <YOUR API KEY>
api_secret: <YOUR API SECRET>
```
If `GOOGLE_DRIVE_CONFIG` is not available, the script will attempt to
load `config.json`. If that file does not exist, the Google API will
attempt to obtain to retrieve the credentials from your existing Google
Cloud account.
If `GOOGLE_DRIVE_SERVICE_ACCOUNT_KEY` is not available, the script will
attempt to load `config.json`. If that file does not exist, the Google
API will attempt to obtain to retrieve the credentials from your
existing Google Cloud account. An example JSON:
```json
{
"client_id": "YOUR CLIENT ID",
"client_secret": "YOUR CLIENT SECRET",
"scope": [
"https://www.googleapis.com/auth/drive",
"https://spreadsheets.google.com/feeds/"
],
"refresh_token": "YOUR REFRESH TOKEN"
"type": "service_account",
"project_id": "<your project id",
"private_key_id": "<your private key id>",
"private_key": "-----BEGIN PRIVATE KEY-----\nREDACTED-----END PRIVATE KEY-----\n",
"client_email": "<your client email>",
"client_id": "<your client id>",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "<your cclient_x509_cert_url>"
}
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment