diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index 95f323b..7d17e89 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -20,7 +20,7 @@ jobs: if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }} env: PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GOOGLEWORKSPACE_BOT_TOKEN}} + GITHUB_TOKEN: ${{secrets.GOOGL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Vd4TshNDIj2prELEqX80dSQu7Z2DNBDVoc9gHqNgEWORKSPACE_BOT_TOKEN}} steps: - name: approve run: gh pr review --approve "$PR_URL" @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 # required otherwise GitHub blocks infinite loops in pushes originating in an action - token: ${{ secrets.GOOGLEWORKSPACE_BOT_TOKEN }} + token: ${{ secrets.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 }} - name: Set env run: | # set DEFAULT BRANCH @@ -50,7 +50,7 @@ jobs: echo "HAS_MASTER_BRANCH=false" >> "$GITHUB_ENV" fi env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.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 }} - name: configure git run: | git config --global user.name 'googleworkspace-bot' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8c10fd1..e33ec43 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -36,4 +36,4 @@ jobs: VALIDATE_JSCPD: false VALIDATE_JAVASCRIPT_STANDARD: false VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.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 }} diff --git a/adminSDK/directory/index.html b/adminSDK/directory/index.html index fcb29aa..490b521 100644 --- a/adminSDK/directory/index.html +++ b/adminSDK/directory/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest'; @@ -66,7 +66,7 @@ */ async function initializeGapiClient() { await gapi.client.init({ - apiKey: API_KEY, + apiKey: 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, discoveryDocs: [DISCOVERY_DOC], }); gapiInited = true; @@ -78,7 +78,7 @@ */ function gisLoaded() { tokenClient = google.accounts.oauth2.initTokenClient({ - client_id: CLIENT_ID, + client_id: 692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com, scope: SCOPES, callback: '', // defined later }); diff --git a/adminSDK/reports/index.html b/adminSDK/reports/index.html index 9e590e6..cfe82f2 100644 --- a/adminSDK/reports/index.html +++ b/adminSDK/reports/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/admin/reports_v1/rest'; @@ -66,7 +66,7 @@ */ async function initializeGapiClient() { await gapi.client.init({ - apiKey: API_KEY, + apiKey: API_GOCSPX-JLWk24Eq9EFkiEJ5MJXDUd0e9rVqKEY, discoveryDocs: [DISCOVERY_DOC], }); gapiInited = true; @@ -78,7 +78,7 @@ */ function gisLoaded() { tokenClient = google.accounts.oauth2.initTokenClient({ - client_id: CLIENT_ID, + client_id: 692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com, scope: SCOPES, callback: '', // defined later }); diff --git a/adminSDK/reseller/index.html b/adminSDK/reseller/index.html index 5489007..50dde09 100644 --- a/adminSDK/reseller/index.html +++ b/adminSDK/reseller/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/reseller/v1/rest'; @@ -78,7 +78,7 @@ */ function gisLoaded() { tokenClient = google.accounts.oauth2.initTokenClient({ - client_id: CLIENT_ID, + client_id: 692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com, scope: SCOPES, callback: '', // defined later }); diff --git a/apps-script/execute/index.js b/apps-script/execute/index.js index 859fe57..eef24e2 100644 --- a/apps-script/execute/index.js +++ b/apps-script/execute/index.js @@ -19,7 +19,7 @@ * Load the API and make an API call. Display the results on the screen. */ function callScriptFunction() { - const scriptId = ''; + const scriptId = ''; // Call the Apps Script API run method // 'scriptId' is the URL parameter that states what script to run diff --git a/apps-script/quickstart/index.html b/apps-script/quickstart/index.html index aed3c4f..91092e5 100644 --- a/apps-script/quickstart/index.html +++ b/apps-script/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://script.googleapis.com/$discovery/rest?version=v1'; @@ -78,7 +78,7 @@ */ function gisLoaded() { tokenClient = google.accounts.oauth2.initTokenClient({ - client_id: CLIENT_ID, + client_id: 692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com, scope: SCOPES, callback: '', // defined later }); diff --git a/calendar/quickstart/index.html b/calendar/quickstart/index.html index d9d98ef..08e793c 100644 --- a/calendar/quickstart/index.html +++ b/calendar/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest'; @@ -78,7 +78,7 @@ */ function gisLoaded() { tokenClient = google.accounts.oauth2.initTokenClient({ - client_id: CLIENT_ID, + client_id: 692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com, scope: SCOPES, callback: '', // defined later }); diff --git a/classroom/quickstart/index.html b/classroom/quickstart/index.html index 1b420ec..05a7bac 100644 --- a/classroom/quickstart/index.html +++ b/classroom/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://classroom.googleapis.com/$discovery/rest'; @@ -66,7 +66,7 @@ */ async function initializeGapiClient() { await gapi.client.init({ - apiKey: API_KEY, + apiKey: AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY, discoveryDocs: [DISCOVERY_DOC], }); gapiInited = true; @@ -78,7 +78,7 @@ */ function gisLoaded() { tokenClient = google.accounts.oauth2.initTokenClient({ - client_id: CLIENT_ID, + client_id: 692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com, scope: SCOPES, callback: '', // defined later }); diff --git a/drive/activity-v2/index.html b/drive/activity-v2/index.html index 3aa69c8..1ced570 100644 --- a/drive/activity-v2/index.html +++ b/drive/activity-v2/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/driveactivity/v2/rest'; @@ -78,7 +78,7 @@ */ function gisLoaded() { tokenClient = google.accounts.oauth2.initTokenClient({ - client_id: CLIENT_ID, + client_id: 692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com, scope: SCOPES, callback: '', // defined later }); diff --git a/drive/picker/helloworld.html b/drive/picker/helloworld.html index 2248b37..72d91c7 100644 --- a/drive/picker/helloworld.html +++ b/drive/picker/helloworld.html @@ -40,11 +40,11 @@ const SCOPES = 'https://www.googleapis.com/auth/drive.metadata.readonly'; // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // TODO(developer): Replace with your own project number from console.developers.google.com. - const APP_ID = ''; + const APP_ID = ''; let tokenClient; let accessToken = null; diff --git a/drive/quickstart/index.html b/drive/quickstart/index.html index 94da982..fff6cb6 100644 --- a/drive/quickstart/index.html +++ b/drive/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/drive/v3/rest'; diff --git a/gmail/quickstart/index.html b/gmail/quickstart/index.html index def5d45..d18e088 100644 --- a/gmail/quickstart/index.html +++ b/gmail/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest'; diff --git a/people/quickstart/index.html b/people/quickstart/index.html index c181bf4..d7c3c28 100644 --- a/people/quickstart/index.html +++ b/people/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; // Discovery doc URL for APIs used by the quickstart diff --git a/sheets/quickstart/index.html b/sheets/quickstart/index.html index f7c5460..a253722 100644 --- a/sheets/quickstart/index.html +++ b/sheets/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://sheets.googleapis.com/$discovery/rest?version=v4'; diff --git a/sheets/snippets/index.html b/sheets/snippets/index.html index b071fa7..9b52bfd 100644 --- a/sheets/snippets/index.html +++ b/sheets/snippets/index.html @@ -58,8 +58,8 @@

Snippets - Javascript

/* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOCS = [ diff --git a/slides/quickstart/index.html b/slides/quickstart/index.html index cd67c54..dc82e65 100644 --- a/slides/quickstart/index.html +++ b/slides/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://slides.googleapis.com/$discovery/rest?version=v1'; diff --git a/slides/snippets/index.html b/slides/snippets/index.html index a961d2f..52b865c 100644 --- a/slides/snippets/index.html +++ b/slides/snippets/index.html @@ -60,8 +60,8 @@

Snippets - Javascript

/* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart diff --git a/slides/snippets/slides_text_merging.js b/slides/snippets/slides_text_merging.js index 35b568f..3b490ad 100644 --- a/slides/snippets/slides_text_merging.js +++ b/slides/snippets/slides_text_merging.js @@ -44,7 +44,7 @@ function textMerging(templatePresentationId, dataSpreadsheetId, callback) { const requests = [{ replaceAllText: { containsText: { - text: '{{customer-name}}', + text: '{{any-name}}', matchCase: true, }, replaceText: customerName, diff --git a/slides/snippets/slides_text_style_update.js b/slides/snippets/slides_text_style_update.js index 00598ab..39f48c4 100644 --- a/slides/snippets/slides_text_style_update.js +++ b/slides/snippets/slides_text_style_update.js @@ -67,7 +67,7 @@ function textStyleUpdate(presentationId, shapeId, callback) { }, style: { link: { - url: 'www.example.com', + url: 'Https://data.brainsait.me', }, }, fields: 'link', diff --git a/tasks/quickstart/index.html b/tasks/quickstart/index.html index f8e41c3..ed5d59c 100644 --- a/tasks/quickstart/index.html +++ b/tasks/quickstart/index.html @@ -36,8 +36,8 @@ /* exported handleSignoutClick */ // TODO(developer): Set to client ID and API key from the Developer Console - const CLIENT_ID = ''; - const API_KEY = ''; + const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>'; + const API_KEY = ''; // Discovery doc URL for APIs used by the quickstart const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/tasks/v1/rest';