File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
170170 < script async defer src ="https://accounts.google.com/gsi/client " onload ="gisLoaded() "> </ script >
171171 </ body >
172172</ html >
173- <!-- [END calendar_quickstart] -->
173+ <!-- [END calendar_quickstart] -->
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
163163 < script async defer src ="https://accounts.google.com/gsi/client " onload ="gisLoaded() "> </ script >
164164 </ body >
165165</ html >
166- <!-- [END classroom_quickstart] -->
166+ <!-- [END classroom_quickstart] -->
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
165165 }
166166
167167 // Utility methods for formatting activity records
168-
168+
169169 /**
170170 * Returns a string representation of the first N elements in a list.
171171 * @param {string[] } array - Values to join
Original file line number Diff line number Diff line change 108108 } ;
109109
110110 if ( accessToken === null ) {
111- // Prompt the user to select an Google Account and asked for consent to share their data
111+ // Prompt the user to select a Google Account and ask for consent to share their data
112112 // when establishing a new session.
113113 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
114114 } else {
Original file line number Diff line number Diff line change 3434 /* exported gisLoaded */
3535 /* exported handleAuthClick */
3636 /* exported handleSignoutClick */
37-
37+
3838 // TODO(developer): Set to client ID and API key from the Developer Console
3939 const CLIENT_ID = '<YOUR_CLIENT_ID>' ;
4040 const API_KEY = '<YOUR_API_KEY>' ;
109109 } ;
110110
111111 if ( gapi . client . getToken ( ) === null ) {
112- // Prompt the user to select an Google Account and asked for consent to share their data
112+ // Prompt the user to select a Google Account and ask for consent to share their data
113113 // when establishing a new session.
114114 tokenClient . requestAccessToken ( { prompt : 'consent' } ) ;
115115 } else {
You can’t perform that action at this time.
0 commit comments