marketing-analytics/activation/sheets-based-installer/src/apps_script/pages/explicit_auth.html [77:104]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - } /** * Returns a querystring based on a parameter map. * @param {Object} * @return {string} */ function getQueryString(parameters) { return Object.keys(parameters) .map((key) => `${key}=${encodeURIComponent(parameters[key])}`) .join('&'); } /** * Opens a window to let the user complete OAuth authorization process. */ function startOAuth() { const clientId = document.getElementById('clientId').value; const clientSecret = document.getElementById('clientSecret').value; const apis = document.querySelectorAll('.apiScope:checked'); if (!clientId) { window.alert('Please input OAuth Client ID before continue.'); return; } if (!clientSecret) { window.alert('Please input OAuth Client Secret before continue.'); return; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - marketing-analytics/activation/sheets-based-installer/src/apps_script/pages/oauth.html [51:78]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - } /** * Returns a querystring based on a parameter map. * @param {Object} * @return {string} */ function getQueryString(parameters) { return Object.keys(parameters) .map((key) => `${key}=${encodeURIComponent(parameters[key])}`) .join('&'); } /** * Opens a window to let the user complete OAuth authorization process. */ function startOAuth() { const clientId = document.getElementById('clientId').value; const clientSecret = document.getElementById('clientSecret').value; const apis = document.querySelectorAll('.apiScope:checked'); if (!clientId) { window.alert('Please input OAuth Client ID before continue.'); return; } if (!clientSecret) { window.alert('Please input OAuth Client Secret before continue.'); return; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -