From a7593740d78fb06ceb0b6263c2abc79329c448bb Mon Sep 17 00:00:00 2001 From: Daniel Zen Date: Sun, 7 Jan 2024 05:53:02 -0500 Subject: [PATCH 1/4] Update run.md The "Other" application type has been deprecated and is no longer available. The recommended application type to use for clasp run is now Desktop app. --- docs/run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/run.md b/docs/run.md index 34c968aa..bf5c9c05 100644 --- a/docs/run.md +++ b/docs/run.md @@ -7,7 +7,7 @@ To use `clasp run`, you need to complete 4 steps: - Set up a **Project ID**. -- Create an **OAuth Client ID** (Other). Download as `creds.json`. +- Create an **OAuth Client ID** (Desktop App). Download as `creds.json`. - `clasp login --creds creds.json` with this downloaded file. - Add the following to `appsscript.json`: ```json From 218251deaf5d5b3349bdde94b0e6e1676f5b66ee Mon Sep 17 00:00:00 2001 From: Daniel Zen Date: Sun, 7 Jan 2024 18:47:54 -0500 Subject: [PATCH 2/4] Update run.md Update instructions on where to find used scopes --- docs/run.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/run.md b/docs/run.md index bf5c9c05..142a7cd2 100644 --- a/docs/run.md +++ b/docs/run.md @@ -62,8 +62,12 @@ Many Apps Script functions require special OAuth Scopes (Gmail, Drive, etc.). To run functions that use these scopes, you must add the scopes to your Apps Script manifest and `clasp login` again. + +info + - `clasp open` -- `File > Project Properties > Scopes` +- At the left, click **Overview**. + - View the scopes under "Project OAuth Scopes." - Add these scopes to your `appsscript.json`. - Log in again: `clasp login --creds creds.json`. This will add these scopes to your credentials. - `clasp run sendMail` From ed39420aab446365662278e18b50cfff1df9f04b Mon Sep 17 00:00:00 2001 From: Daniel Zen Date: Sun, 7 Jan 2024 18:52:34 -0500 Subject: [PATCH 3/4] Update run.md --- docs/run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/run.md b/docs/run.md index 142a7cd2..80f34c5d 100644 --- a/docs/run.md +++ b/docs/run.md @@ -68,6 +68,6 @@ To run functions that use these scopes, you must add the scopes to your Apps Scr - `clasp open` - At the left, click **Overview**. - View the scopes under "Project OAuth Scopes." -- Add these scopes to your `appsscript.json`. +- Add these scopes to your `appsscript.json` in the `oauthScopes` property array. - Log in again: `clasp login --creds creds.json`. This will add these scopes to your credentials. - `clasp run sendMail` From 14823ea870e2fdf3e57036ca6c09ab7f8f2145f8 Mon Sep 17 00:00:00 2001 From: Daniel Zen Date: Sun, 7 Jan 2024 18:55:34 -0500 Subject: [PATCH 4/4] Update run.md --- docs/run.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/run.md b/docs/run.md index 80f34c5d..fd76fbea 100644 --- a/docs/run.md +++ b/docs/run.md @@ -62,9 +62,6 @@ Many Apps Script functions require special OAuth Scopes (Gmail, Drive, etc.). To run functions that use these scopes, you must add the scopes to your Apps Script manifest and `clasp login` again. - -info - - `clasp open` - At the left, click **Overview**. - View the scopes under "Project OAuth Scopes."