google-apps

Getting Google Spreadsheet CSV into A Pandas Dataframe

孤街醉人 提交于 2019-11-28 03:39:37
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=0Ak1ecr7i0wotdGJmTURJRnZLYlV3M2daNTRubTdwTXc&output=csv') data = r.content The data ends up looking like: (1st row headers) ',City,region,Res

Uploading images to a Google Spreadsheet using Apps Script

烂漫一生 提交于 2019-11-28 01:35:59
问题 I'm new to scripting. I have copied the code from here Upload image to Google Spreadsheet The original script allowed a user to upload 1 image via the web app form and then the image would append to a row in a Google spreadsheet and into a Google Doc. I have been able to modify the web app form to allow a user to upload 2 images, but I can't figure out how to get the second image into the spreadsheet and doc. var submissionSSKey = 'Google Spreadsheet key'; var docurl = 'Google document URL'

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

 ̄綄美尐妖づ 提交于 2019-11-28 00:19: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? Serge insas The .getAs() method does not allow for parameters but you can use the spreadsheet api where you

Open Google Docs Spreadsheet by name

人盡茶涼 提交于 2019-11-28 00:09:16
问题 I have a situation where a script is taking input data and sending it to a spreadsheet. After a while, this spreadsheet becomes too big. Right now we have to manually move the items from the the primary spreadsheet to a new one. The reason is that not everyone is familiar with the code and are willing to change the ID in the code. I would like to know if there is a way to open the spreadsheet by name. If not, is there a better way of achieving what we need (described above) 回答1: The DocsList

How do you delegate your OpenId to Google Apps

不羁岁月 提交于 2019-11-27 19:52:37
问题 I use Google Apps for my domain email, and I was wondering if I could use that account for OpenID instead of the regular Gmail account. I know I can delegate Openid to some other URL using this: <link rel="openid.server" href="http://www.myopenid.com/server" /> <link rel="openid.delegate" href="http://samruby.myopenid.com/" /> But I can't find the appropriate URLs for Google. Thanks -Mathieu 回答1: Google recently (an hour or so ago) announced OpenID support for Google Apps customers. Check out

Embedded Google form in email?

微笑、不失礼 提交于 2019-11-27 18:50:35
问题 I'm embedded Google form in email by Google apps script but the form doesn't submit correctly from Outlook and from iPhone. It works from Google Mail client only? Is there's away to solve this problem of submission from iphone or outlook? Thanks Amany 回答1: To use forms embedded in emails, the email client needs to support html forms. Outlook has its own forms, but does not support the html form element (reference). I haven't found a reference for iPhone, but it's likely that it also limits

How can I avoid google mail server asking me to log in via browser?

夙愿已清 提交于 2019-11-27 18:08:14
I am trying to send emails from Django using an email configured by Google Apps, my configuration at the settings.py file looks something like this: EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'contact@mydomain.com' EMAIL_HOST_PASSWORD = 'password' EMAIL_PORT = 587 EMAIL_USE_TLS = True When I try to send an email using: from django.core.mail import send_mail send_mail("Happy new year", "We wish you the best for 3001", "contact@mydomain.com", ["someuser@gmail.com"]) I get the following error: SMTPAuthenticationError: (535, '5.7.1 Please log in with your web browser and then try again. Learn

Google apps script update fusion table from spreadsheet script

冷暖自知 提交于 2019-11-27 15:23:33
问题 I would like to create an apps script in a google docs spreadsheet that will periodically copy rows from the sheet and insert them into a fusion table. Below I've pasted my best attempt, but it should be noted that I really want it to be posting a 2 column range, not that pair of values. That is just a placeholder. This link here describes how to talk to fusion tables http://code.google.com/apis/fusiontables/docs/developers_guide.html#Inserting But I dont understand how to write the script to

Getting a random error: policy_enforced on most Google Apps when using OAuth 2

杀马特。学长 韩版系。学妹 提交于 2019-11-27 15:22:53
问题 Since yesterday (October 2nd, 2014), there seem to be random errors when trying to access apps that use OAuth 2. There are two problems: We can't access the apps we use for our internal management. Our clients that cannot login through their Google Apps sign in. Here are the details of the error: Request Details from_login=1 response_type=code scope=email profile https://www.googleapis.com/auth/drive.file access_type=online redirect_uri=https://login.xero.com/SignIn/GoogleOAuthCallback as=

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-27 14:14:51
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? This method uses the Gmail API, the OAuth2 for Apps Script library, and "Domain-wide Delegation of