google-apps

Share a Drive document without notifying user with Google Apps Script

你离开我真会死。 提交于 2019-11-26 20:42:05
问题 I am creating a workflow process in Apps Script where a Doc is generated from a template and shared with various users for approval. The Script sends a customised email notifying a user that the document requires their approval but they also receive a second email at each stage in the process from the user whose Drive the document is stored in saying "User has shared a document with you". Is there any way of disabling these alerts? When you share a document manually from your Drive, there is

Where can I get Google developer key

亡梦爱人 提交于 2019-11-26 17:57:59
问题 I am working on Google API like chat, contacts and so on... I am stuck on developer_key as mentioned in gdata doc. You can get this at https://code.google.com/apis/console: 'developer_key' => '' I have already: // OAuth2 Settings, you can get these keys at https://code.google.com/apis/console 'oauth2_client_id' => '', 'oauth2_client_secret' => '', 'oauth2_redirect_uri' => '' Where can I find developer key? I found some thing like this http://code.google.com/apis/youtube/dashboard/gwt/index

Form validation on fields and FileUpload

纵然是瞬间 提交于 2019-11-26 16:48:14
问题 I'm looking to do validation / required fields on a form that has text input and fileupload for file attachments. The script takes inputs and allows user to attach a file. Upon submit, it adds input fields to spreadsheet and uploads the file to my drive. What I want to do is force the text input and drop down lists to be answered and require a file attachment. I found this link for examples "Example validation" but I'm having a problem trying to add this to the click handler in my code. Can

How to use the Gmail API, OAuth2 for Apps Script, and Domain-Wide Delegation to set email signatures for users in a G Suite domain

两盒软妹~` 提交于 2019-11-26 16:38:28
问题 This is a follow-up to a previous question/answer I posted (How to use the Google Email Settings API and the OAuth2 for Apps Script Library to set email signatures for users in a Google Apps domain), but I'm creating a new question since the Email Settings API has been deprecated and the process is significantly different now. As the administrator of a G Suite domain, how do you use the Gmail API to programmatically set the email signatures of users in your domain through Google Apps Script?

Google Apps Marketplace SDK + Domain-wide OAuth 2 SSO

让人想犯罪 __ 提交于 2019-11-26 14:46:51
问题 We've been working on an Google Apps-app meant to be installed by a domain administrator. We initially tried to list it via the (now deprecated) market listing, but all new submissions must now go through the Google Apps Marketplace SDK. We're having an issue with the new GAM SDK SSO however - despite having installed it on our domain internally, each user is prompted via the consent screen when sending them to the OAuth login url. The OAuth url is asking for the same permission scope as is

Must issue a STARTTLS command first. Sending email with Java and Google Apps

冷暖自知 提交于 2019-11-26 12:27:42
问题 I am trying to use Bill the Lizard\'s code to send an email using Google Apps. I am getting this error: Exception in thread \"main\" javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. f3sm9277120nfh.74 at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at SendMailUsingAuthentication.postMail(SendMailUsingAuthentication.java:81) at

Getting a 403 - Forbidden for Google Service Account

拥有回忆 提交于 2019-11-26 11:34:12
问题 I am trying to get an access token for Google Service Account. Following is my code - String SERVICE_ACCOUNT_EMAIL = \"edited@developer.gserviceaccount.com\"; List scope = new ArrayList(); scope.add(\"https://www.googleapis.com/auth/admin.directory.user\"); String keyFile = \"C:\\\\edited-privatekey.p12\"; HttpTransport HTTP_TRANSPORT = new NetHttpTransport(); JsonFactory JSON_FACTORY = new JacksonFactory(); GoogleCredential credential = new GoogleCredential.Builder() .setTransport(HTTP

Send Email via C# through Google Apps account

ε祈祈猫儿з 提交于 2019-11-26 09:06:01
问题 I have a standard Google Apps account. I have setup a custom domain through Google Apps. I am able to send and receive emails successfully through Google Apps when I use the Gmail interface. However, I want to send an email via code. In order to attempt this, I have been trying the following code: MailMessage mailMessage = new MailMessage(); mailMessage.To.Add(\"someone@somewhere.com\"); mailMessage.Subject = \"Test\"; mailMessage.Body = \"<html><body>This is a test</body></html>\";