google-apps

Adding “password” type to Google Apps Script inputBox

北战南征 提交于 2021-02-19 04:36:05
问题 Is it possible to assign the "password" type to the Google Apps Script inputBox so the text doesn't show? The following is working just fine, but the input field is a simple textbox and displays the text rather than "••••••••": Browser.inputBox('Please enter your password'); I have a Google Sheet with an associated script that automatically populates some cells with information retrieved from an external API. The API requires simple authentication so that's why I'm prompting the user for

Restrict Google+ Sign-In to specific Apps Domain

寵の児 提交于 2021-02-17 03:20:54
问题 Currently using the OAuth server side one-time-code flow, discussed here: https://developers.google.com/+/web/signin/server-side-flow Works perfectly for google login. I want the ability, though, to limit this login to only work for users that belong to a specific apps domain. Is there any way to enforce this through the api? OR am I limited to only doing this on my end after google authentication by regexing the email domain? (I would like to avoid this). Thanks! 回答1: There is no support for

Restrict Google+ Sign-In to specific Apps Domain

霸气de小男生 提交于 2021-02-17 03:17:22
问题 Currently using the OAuth server side one-time-code flow, discussed here: https://developers.google.com/+/web/signin/server-side-flow Works perfectly for google login. I want the ability, though, to limit this login to only work for users that belong to a specific apps domain. Is there any way to enforce this through the api? OR am I limited to only doing this on my end after google authentication by regexing the email domain? (I would like to avoid this). Thanks! 回答1: There is no support for

Change file name of file uploaded using Google Drive API - Apps Script

纵饮孤独 提交于 2021-02-11 15:51:57
问题 I created a script that can upload files on Google Drive Shared Drives using service account. However, I having trouble on renaming the file. I always get "Untitled" file name. This is my code: function movefiletoDrive(fileId, driveID, parentDriveId){ var body = {"title":"RJ"} var service = getDriveService(); service.reset() if (service.hasAccess()) { var url = 'https://www.googleapis.com/drive/v3/files/'+fileId+'?addParents='+driveID+'&removeParents='+parentDriveId+'&supportsTeamDrives=true'

Random substring error? “TypeError: Cannot find function substring in object…”

ⅰ亾dé卋堺 提交于 2021-02-08 06:24:17
问题 The error is: TypeError: Cannot find function substring in object The code loops through 10 values, checking for the first character being a number. function TypeErrorMystery() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var s = ss.getActiveSheet(); //loop from cell 1-10 for (var i = 0; i < 10; i++) { var range = s.getRange(i + 1, 1) var substring1 = range.getValue().substring(0, 1); //if first character in cell is # if (substring1 === "#" ) { //write over it with "success" range

Send mail via google app with smtp relay

梦想的初衷 提交于 2021-02-08 05:14:26
问题 My application in asp.net with c#, from application some notification email sent daily (more then 500). We have change mail hosting to Google mail app. For sending mail I was using smtp host “smtp.gmail.com” and it was work fine, but it has limit of 99 so after that its gives below error: Error : Mailbox unavailable. The server response was: 5.4.5 Daily sending quota exceeded. qa15sm12740316pab.12 – gsmtp So I have configure smtp relay as per the article https://support.google.com/a/answer

Send mail via google app with smtp relay

痴心易碎 提交于 2021-02-08 05:10:42
问题 My application in asp.net with c#, from application some notification email sent daily (more then 500). We have change mail hosting to Google mail app. For sending mail I was using smtp host “smtp.gmail.com” and it was work fine, but it has limit of 99 so after that its gives below error: Error : Mailbox unavailable. The server response was: 5.4.5 Daily sending quota exceeded. qa15sm12740316pab.12 – gsmtp So I have configure smtp relay as per the article https://support.google.com/a/answer

Send mail via google app with smtp relay

こ雲淡風輕ζ 提交于 2021-02-08 05:10:12
问题 My application in asp.net with c#, from application some notification email sent daily (more then 500). We have change mail hosting to Google mail app. For sending mail I was using smtp host “smtp.gmail.com” and it was work fine, but it has limit of 99 so after that its gives below error: Error : Mailbox unavailable. The server response was: 5.4.5 Daily sending quota exceeded. qa15sm12740316pab.12 – gsmtp So I have configure smtp relay as per the article https://support.google.com/a/answer

How to install G Suite Marketplace application from our website? (Integrate with google button)

怎甘沉沦 提交于 2021-02-07 21:46:13
问题 I have configured my marketplace app, and I would like to let the user install the app through our website instead of going to G Suite marketplace at all. I heard that Google has released this kind of functionality called "Integrate with google" in 2014 via this video. But I was unable to find any documentation for this now. Documentation page of this feature is giving 404 error as well. Was this feature obsoleted already? or else can someone please help me configuring this option on my

Create Email through Google Apps API

浪子不回头ぞ 提交于 2021-02-07 19:41:49
问题 I want to dynamically create email addresses (and dispose them after a while), from my code. I've searched all over the web, but didn't find any API endpoint that allows people to create new email accounts. I am using Google Apps for Businesses, so their documentation is made pretty well and indexed by Google, but still nothing. Did anyone do this, or has the link to a doc page? 回答1: Creating and deleting user accounts can be found here: https://developers.google.com/google-apps/provisioning/