Skip to content

Commit 5db6f50

Browse files
authored
Fix typos and standardize product name (#236)
Fix typos and standardize the name to Google Picker so it matches our documentation.
1 parent 5a93462 commit 5db6f50

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

drive/picker/helloworld.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
<!DOCTYPE html>
1818
<html>
1919
<head>
20-
<title>Picker API Quickstart</title>
20+
<title>Google Picker API Quickstart</title>
2121
<meta charset="utf-8" />
2222
</head>
2323
<body>
24-
<p>Picker API API Quickstart</p>
24+
<p>Google Picker API Quickstart</p>
2525

26-
<!--Add buttons to initiate auth sequence and sign out-->
26+
<!--Add buttons to initiate auth sequence and sign out.-->
2727
<button id="authorize_button" onclick="handleAuthClick()">Authorize</button>
2828
<button id="signout_button" onclick="handleSignoutClick()">Sign Out</button>
2929

@@ -39,19 +39,18 @@
3939
// included, separated by spaces.
4040
const SCOPES = 'https://www.googleapis.com/auth/drive.metadata.readonly';
4141

42-
// TODO(developer): Set to client ID and API key from the Developer Console
42+
// TODO(developer): Replace with your client ID and API key from https://console.cloud.google.com/.
4343
const CLIENT_ID = '<YOUR_CLIENT_ID>';
4444
const API_KEY = '<YOUR_API_KEY>';
4545

46-
// TODO(developer): Replace with your own project number from console.developers.google.com.
46+
// TODO(developer): Replace with your project number from https://console.cloud.google.com/.
4747
const APP_ID = '<YOUR_APP_ID>';
4848

4949
let tokenClient;
5050
let accessToken = null;
5151
let pickerInited = false;
5252
let gisInited = false;
5353

54-
5554
document.getElementById('authorize_button').style.visibility = 'hidden';
5655
document.getElementById('signout_button').style.visibility = 'hidden';
5756

@@ -132,7 +131,7 @@
132131
}
133132

134133
/**
135-
* Create and render a Picker object for searching images.
134+
* Create and render a Google Picker object for searching images.
136135
*/
137136
function createPicker() {
138137
const view = new google.picker.View(google.picker.ViewId.DOCS);
@@ -152,11 +151,11 @@
152151

153152
/**
154153
* Displays the file details of the user's selection.
155-
* @param {object} data - Containers the user selection from the picker
154+
* @param {object} data - Contains the user selection from the Google Picker.
156155
*/
157156
async function pickerCallback(data) {
158157
if (data.action === google.picker.Action.PICKED) {
159-
let text = `Picker response: \n${JSON.stringify(data, null, 2)}\n`;
158+
let text = `Google Picker response: \n${JSON.stringify(data, null, 2)}\n`;
160159
const document = data[google.picker.Response.DOCUMENTS][0];
161160
const fileId = document[google.picker.Document.ID];
162161
console.log(fileId);

0 commit comments

Comments
 (0)