google-spreadsheet-api

What is the fastest way to update a google spreadsheet with a lot of data through the spreadsheet api?

怎甘沉沦 提交于 2019-11-27 14:31:50
I am using the Google Spreadsheet API to update a spreadsheet with a lot of data (hundreds of rows and around twenty columns). I have tested making a batch call to update 2500 cells. The call takes around 40 seconds to complete, with the request being about 1mb and the response being ~2mb. Is there any way to get it to work faster? I was able to speed up the batch request provided in the official API http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#SendingBatchRequests by skipping the QUERY part before the UPDATE. So this is what they have in the example: // Prepare the

How to convert Google spreadsheet's worksheet string id to integer index (GID)?

旧街凉风 提交于 2019-11-27 11:50:38
To export google spreadsheet's single worksheet to CSV, integer worksheet index(GID) is required to be passed. https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=%s&gid=%d&exportFormat=csv But, where are those informations? With gdata.spreadsheets.client, I could find some string id for worksheet like "oc6, ocv, odf". client = gdata.spreadsheets.client.SpreadsheetsClient() feed = client.GetWorksheets(spreadsheet, auth_token=auth_token) And it returns below atom XML. (part of it) <entry gd:etag=""URJFCB1NQSt7ImBoXhU.""> <id>https://spreadsheets.google.com/feeds/worksheets

How to get only recalculated cells from a google spreadsheet via Google spreadsheet API (gdata)

自古美人都是妖i 提交于 2019-11-27 08:41:15
问题 Gdata offers a way to get only changed cells from a google spreadsheet, based on a time stamp. How should I create the time stamp for the Gdata call? i.e. "Only entries with a published time equal to or later than the specified timestamp will be returned." setPublishedMax() https://developers.google.com/gdata/javadoc/com/google/gdata/client/Query#setPublishedMax(com.google.gdata.data.DateTime) Is there are a way to pull the current time from the server? If I create a local time stamp, how can

HTML select option to be captured from Google Spreadsheet

元气小坏坏 提交于 2019-11-27 07:25:48
问题 I have been spending days to get over this but no luck. I have a html page in Google script whereby I want a dropdown list - this is achieved as follows <div> <select name="source"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">Audi</option> </select> </div> Now instead of the manual inputs I want the option fields to be captured from a spreadsheet, if the coloumn range increase or decrease the dropdown list

Export Single Sheet to PDF in Apps Script

谁说胖子不能爱 提交于 2019-11-27 06:30:59
问题 I have many sheets in a Spreadsheet. I have 2 sheets that I would like to export every time. Sheet One is a sheet with the information. Sheet Two is the sheet I need to give to customers and it takes references from Sheet One. Currently, I create a new temporary spreadsheet, copy Sheet One to the new spreadsheet, then copy Sheet Two to the temporary spreadsheet. After, I convert the temporary spreadsheet to a pdf. Then I delete the temporary spreadsheet and save the pdf into a folder in

How do I create a Google Spreadsheet with a service account and share to other google users in java?

隐身守侯 提交于 2019-11-27 05:23:21
问题 I have an application where I, with a Google Service Account , gather lots of information about my site from the Analytics API. My next step is to create a spreadsheet with the service account and share the document with a couple of users. I have checked out the documentation at https://developers.google.com/google-apps/spreadsheets/ but I can't find anything there about service accounts and sharing the documents. So my first question is this possible? If not do I need to implement the "use

Spreadsheet Email Trigger

别等时光非礼了梦想. 提交于 2019-11-27 04:44:15
问题 I have Written Script on Google Spreadsheet to send Email when spreadsheet is modified or any Data is added. Email Trigger is working but whenever any data is entered in next Row it send Email to previous email address also. Please suggest solution The below is written script : function onEdit(e) { var sheet = SpreadsheetApp.getActiveSheet(); var startRow = 2; // First row of data to process var numRows = 1; // Number of rows to process var dataRange = sheet.getRange(startRow, 1 , numRows,3)

Download link for Google Spreadsheets CSV export - with Multiple Sheets

爱⌒轻易说出口 提交于 2019-11-27 04:10:36
问题 I'm trying to find a link which allows me to download a CSV formatted version of my Google Spreadsheet. Currently I'm using: https://docs.google.com/spreadsheets/d/DOCID/export?format=csv This works great except that it only download the first Sheet. My document has multiple sheets. Does anyone know how to format this link so that it downloads either all the sheets or a specific sheet? Something like: &sheet=all or &sheet=3 回答1: Every document in Google Sheets supports the "Chart Tools

AccessTokenRefreshError: Google Spreadsheet API with oAuth 2.0 Service Account of App Engine App

六眼飞鱼酱① 提交于 2019-11-27 03:50:23
问题 I'm trying to access a Google Spreadsheet via the GData API using oAuth 2.0 service-account credentials created for a Python 2.7 app hosted on Google App Engine. The app uses the recent gdata-python-client from Google, v. 2.0.18 (gdata and atom). The app uses the recent google-api-python-client-gae, v. 1.2. In the Google Developer Console for this project (in this example referred to as "my-gae-app"), I have created a Service Account and delegated domain-wide authority to the service account

What is an example of using OAuth 2.0 and Google Spreadsheet API with Java?

隐身守侯 提交于 2019-11-27 01:37:47
问题 Where is example code showing how to use the Google Data Java Client Library and its support for OAuth 2.0 with the Google Spreadsheet API (now called the Google Sheets API )? 回答1: Answer moved from original question to match site "Q and A" format. The Google Data Java Client Library supports OAuth 2.0 . Unfortunately, there are no complete samples in the library showing how to use it with the Google Spreadsheet API . Here is an example that has worked for me. I hope someone find it helpful.