Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commitgmail #182

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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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 }}
8 changes: 4 additions & 4 deletions adminSDK/directory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<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1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/admin/directory_v1/rest';
Expand Down Expand Up @@ -66,7 +66,7 @@
*/
async function initializeGapiClient() {
await gapi.client.init({
apiKey: API_KEY,
apiKey: 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,
discoveryDocs: [DISCOVERY_DOC],
});
gapiInited = true;
Expand All @@ -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
});
Expand Down
8 changes: 4 additions & 4 deletions adminSDK/reports/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<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1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/admin/reports_v1/rest';
Expand Down Expand Up @@ -66,7 +66,7 @@
*/
async function initializeGapiClient() {
await gapi.client.init({
apiKey: API_KEY,
apiKey: API_GOCSPX-JLWk24Eq9EFkiEJ5MJXDUd0e9rVqKEY,
discoveryDocs: [DISCOVERY_DOC],
});
gapiInited = true;
Expand All @@ -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
});
Expand Down
6 changes: 3 additions & 3 deletions adminSDK/reseller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<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1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/reseller/v1/rest';
Expand Down Expand Up @@ -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
});
Expand Down
2 changes: 1 addition & 1 deletion apps-script/execute/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Load the API and make an API call. Display the results on the screen.
*/
function callScriptFunction() {
const scriptId = '<ENTER_YOUR_SCRIPT_ID_HERE>';
const scriptId = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Call the Apps Script API run method
// 'scriptId' is the URL parameter that states what script to run
Expand Down
6 changes: 3 additions & 3 deletions apps-script/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://script.googleapis.com/$discovery/rest?version=v1';
Expand Down Expand Up @@ -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
});
Expand Down
6 changes: 3 additions & 3 deletions calendar/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest';
Expand Down Expand Up @@ -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
});
Expand Down
8 changes: 4 additions & 4 deletions classroom/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://classroom.googleapis.com/$discovery/rest';
Expand Down Expand Up @@ -66,7 +66,7 @@
*/
async function initializeGapiClient() {
await gapi.client.init({
apiKey: API_KEY,
apiKey: AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY,
discoveryDocs: [DISCOVERY_DOC],
});
gapiInited = true;
Expand All @@ -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
});
Expand Down
6 changes: 3 additions & 3 deletions drive/activity-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/driveactivity/v2/rest';
Expand Down Expand Up @@ -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
});
Expand Down
6 changes: 3 additions & 3 deletions drive/picker/helloworld.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// TODO(developer): Replace with your own project number from console.developers.google.com.
const APP_ID = '<YOUR_APP_ID>';
const APP_ID = '<https://g.dev/fadil369>';

let tokenClient;
let accessToken = null;
Expand Down
4 changes: 2 additions & 2 deletions drive/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/drive/v3/rest';
Expand Down
4 changes: 2 additions & 2 deletions gmail/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/gmail/v1/rest';
Expand Down
4 changes: 2 additions & 2 deletions people/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_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
Expand Down
4 changes: 2 additions & 2 deletions sheets/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://sheets.googleapis.com/$discovery/rest?version=v4';
Expand Down
4 changes: 2 additions & 2 deletions sheets/snippets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ <h3>Snippets - Javascript</h3>
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOCS = [
Expand Down
4 changes: 2 additions & 2 deletions slides/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://slides.googleapis.com/$discovery/rest?version=v1';
Expand Down
4 changes: 2 additions & 2 deletions slides/snippets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ <h3>Snippets - Javascript</h3>
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';


// Discovery doc URL for APIs used by the quickstart
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/slides_text_merging.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function textMerging(templatePresentationId, dataSpreadsheetId, callback) {
const requests = [{
replaceAllText: {
containsText: {
text: '{{customer-name}}',
text: '{{any-name}}',
matchCase: true,
},
replaceText: customerName,
Expand Down
2 changes: 1 addition & 1 deletion slides/snippets/slides_text_style_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function textStyleUpdate(presentationId, shapeId, callback) {
},
style: {
link: {
url: 'www.example.com',
url: 'Https://data.brainsait.me',
},
},
fields: 'link',
Expand Down
4 changes: 2 additions & 2 deletions tasks/quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
/* exported handleSignoutClick */

// TODO(developer): Set to client ID and API key from the Developer Console
const CLIENT_ID = '<YOUR_CLIENT_ID>';
const API_KEY = '<YOUR_API_KEY>';
const CLIENT_ID = '<692918908620-rfum1gdqtc0bfkcgk5gd7uonupe1tm4i.apps.googleusercontent.com>';
const API_KEY = '<AIzaSyDB8vShKlNGvfLFQ3-D4j-S1EKdqGawTnY>';

// Discovery doc URL for APIs used by the quickstart
const DISCOVERY_DOC = 'https://www.googleapis.com/discovery/v1/apis/tasks/v1/rest';
Expand Down