google-apps

Trigger an email when a cell is written into from another app (IFTTT)

纵饮孤独 提交于 2019-11-27 03:35:02
问题 So here's what I've been working on. I'm a basketball coach and have a spreadsheet that pulls in all of my players' tweets from IFTTT.com (it basically takes the RSS feed of a twitter list and when it is updated, it updates the spreadsheet). I have been working on coding that basically says "if a player tweets an inappropriate word, email me immediately." I've got the code figured out that if I just type in an inappropriate word, it'll turn the cell red and email me. However, I have not

How do I use OAuth within my GWT application?

耗尽温柔 提交于 2019-11-27 02:42:08
问题 How do I use OAuth within my Java GWT application? In particular, I want to get a list of users in my Google Aps domain, using this API: http://code.google.com/googleapps/domain/profiles/developers_guide_protocol.html I know this sounds like a question, that probably has been asked many times before, but I couldn't find any Java code on how to realize the OAuth steps described in the API above. I would be glad if someone could share some code, or point me to the right docs. 回答1: What do you

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

前提是你 提交于 2019-11-27 01:35:34
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 SendMailUsingAuthentication.main(SendMailUsingAuthentication.java:44) Bill's code contains the next line, which seems related

Google apps login in django

五迷三道 提交于 2019-11-27 00:58:16
问题 I'm developing a django app that integrates with google apps. I'd like to let the users login with their google apps accounts (accounts in google hosted domains, not google accounts ) so they can access their docs, calendar, and whatnot. In order to do it, I downloaded and started using django_openid_auth (and thus, python-openid). First, to test it, I used this url in my settings: OPENID_SSO_SERVER_URL = 'https://www.google.com/accounts/o8/id' And with that I managed to redirect the user to

get value in one column in spreadsheet using google apps script

北城余情 提交于 2019-11-27 00:37:14
问题 I want to get a string value -to compare it later on with an if condition- from only one column in spreadsheet using Google apps script. I searched the internet and I found this link - sorry if this sounds stupid, I am new to Google apps scripts - https://developers.google.com/apps-script/class_spreadsheet var values = SpreadsheetApp.getActiveSheet().getRange(2, 3, 6, 4).getValues(); I guess that must be helpful, the only problem is that the column I want to get the values from is dynamic so

Getting Google Spreadsheet CSV into A Pandas Dataframe

这一生的挚爱 提交于 2019-11-27 00:03:11
问题 I uploaded a file to Google spreadsheets (to make a publically accessible example IPython Notebook, with data) I was using the file in it's native form could be read into a Pandas Dataframe. So now I use the following code to read the spreadsheet, works fine but just comes in as string,, and I'm not having any luck trying to get it back into a dataframe (you can get the data) import requests r = requests.get('https://docs.google.com/spreadsheet/ccc?key

Send mail via Google Apps Gmail using service account domain wide delegation in nodejs

只愿长相守 提交于 2019-11-26 23:39:56
问题 I've been reading tutorials and seeing examples for 2 days already, with no success. I want to send an email using Google Apps Gmail account in NodeJS environment, however, i get 400 response from Google API: {[Error: Bad Request] code: 400, errors: [{ domain: 'global', reason: 'failedPrecondition', message: 'Bad Request' }] } Here's what I've done so far: Created a project in Google Cloud Platform Created a service account Enabled Domain Wide Delegation for the service account Downloaded the

Use bash curl with oauth to return google apps user account data? [closed]

旧时模样 提交于 2019-11-26 22:25:14
I am looking for a fairly simple method to use curl to return information about a batch of users accounts (like createddate or lastlogin) in google Apps. I am very inexperienced with curl and the Google Apps api's. Does anyone know of a good introductory article on how to use curl with Oauth to request user account data? Thank you in advance! This isn't easily achieved as OAuth 2.0 and JSON aren't easily handled by Bash. Having said that, here's a basic version that'll give you the data you're looking for. The greps could use some cleanup but then again, interpreting JSON with grep is a really

Include sheet names when exporting Google Spreadsheets to PDF with Google Apps Scripts

 ̄綄美尐妖づ 提交于 2019-11-26 21:40:57
问题 I am exporting a Google Spreadsheet to PDF format with Google Apps Script, and would like to 'include sheet names' on the PDF pages. Is this possible to do this from the code? var spreadsheetFile = DocsList.getFileById(spreadsheet_id); var blob = spreadsheetFile.getAs('application/pdf'); blob.setName(spreadsheetFile.getName()); DocsList.getFolder(file_destination).createFile(blob); In the Spreadsheet app it is supported in the UI, so I am wondering whether Apps Scripts supports this too? 回答1:

Send Email via C# through Google Apps account

蹲街弑〆低调 提交于 2019-11-26 21:20:43
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>"; mailMessage.IsBodyHtml = true; // Create the credentials to login to the gmail account associated with my custom