google-spreadsheet-api

Get list of sheets and latest sheet in google spreadsheet api v4 in Python

旧时模样 提交于 2019-11-30 17:42:55
I am trying to read and write values of different sheets in python 3 following the google official documentation . Though I am able to read values from certain sheets using range property in rangeName = 'Class Data!A2:E' in the code block mentioned below: discoveryUrl = ('https://sheets.googleapis.com/$discovery/rest?' 'version=v4') service = discovery.build('sheets', 'v4', http=http, discoveryServiceUrl=discoveryUrl) spreadsheetId = '1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms' rangeName = 'Class Data!A2:E' result = service.spreadsheets().values().get( spreadsheetId=spreadsheetId, range

Is an API available for the new Google sheets (spreadsheets)?

社会主义新天地 提交于 2019-11-30 17:38:13
问题 With the introduction of the new version of the Google sheets (spreadsheets), the Gdata API no longer work. (see https://support.google.com/drive/answer/3543688) Are there new APIs available for the new Google sheets or will Gdata be updated to support the new Sheets? Or are there any workarounds? This is currently breaking our production code which programmatically reads contents from Google Sheets using the gdata API. Please help! 回答1: It appears that Google has finally updated their Gdata

Authorizing requests with OAuth 2.0 in Google Spreadsheet API

徘徊边缘 提交于 2019-11-30 17:20:08
问题 I am trying to create a PHP web page that requires reading some data from a google spreadsheet in my domain (I am using Google Apps Free Edition). The spreadsheet to be read is a non-public one but is visible to some people in my domain. Since it's non-public, I know there will be some authentication and authorization stuff even I am using the API to read it. I found this page but there is something that I don't understand: http://code.google.com/intl/zh-TW/apis/spreadsheets/data/3.0

Duplicate Rows in Google Spreadsheet based on Value

こ雲淡風輕ζ 提交于 2019-11-30 16:14:34
问题 I'm trying to programatically duplicate rows in a Google spreadsheet. I would like the number of times the row is duplicated to be based on one of the values in the row itself. For example, lets say I have a table like this: You can see that there are numbers in column C. The value in column C is the number of times I would like to duplicate the row. This is what the desired result would look like: Technically, if the value in column C was 3, we would be duplicating the row two times. Any

Google Apps Script Additional Sorting Rules

时间秒杀一切 提交于 2019-11-30 15:33:55
I am working on a Google Apps Script spreadsheet application, and one of the abilities I would like the program to have is to automatically sort a series of form responses based on data from 2 different columns. So I would want to sort it by the data in column 16 and then sort by column 1. I can achieve this functionality manually using the method at: https://drive.googleblog.com/2010/06/tips-tricks-advanced-sorting-rules-in.html Currently I am running the Spreadsheet.sort(column, ascending) function with the first column, but I cannot make it sort so that it will accept the second column as

Google Sheets API “update” method Http Error 400

余生长醉 提交于 2019-11-30 15:08:13
I am trying to make a python script that reads and writes to a google spreadsheet. I've basically copied the python quickstart script at https://developers.google.com/sheets/quickstart/python and modified it using the reference at https://developers.google.com/resources/api-libraries/documentation/sheets/v4/python/latest/ . Everything works fine with the "get" method shown in the quickstart script. I can read the sheet with no errors. To use "update" instead of "get" (write to the sheet instead of read it), I removed the .readonly portion of the scope url. I also replaced the get() method with

How can I invoke my standalone script in my spreadsheet?

强颜欢笑 提交于 2019-11-30 14:14:16
问题 I have created a standalone Apps Script from Google Drive, but when I try to access it from a Google Spreadsheet, I don't see a way to access the script (even though when I created the script, I created it as a spreadsheet script). In the spreadsheet, the "Tools->Script manager..." menu item doesn't show my script, nor does the "Tools->Script editor...". The latter has a section for 'recent projects', but it doesn't list my newly created script, nor its associated project. If I create a new

how to work with spreadsheets using Google Drive API on iOS

早过忘川 提交于 2019-11-30 13:56:09
问题 I'm trying to write an iPhone app that stores its database in a Google spreadsheet. I followed the DrEdit example here which uses the Drive API to read/write plain text files to Google Drive. I'm trying to modify the example app to work with spreadsheets instead. I was able to upload a csv file and ask Google to convert it. However, what I really want is to directly work with mimeType: "application/vnd.google-apps.spreadsheet". I'm very new at this and it would be extremely helpful if someone

How can I invoke my standalone script in my spreadsheet?

末鹿安然 提交于 2019-11-30 10:05:24
I have created a standalone Apps Script from Google Drive, but when I try to access it from a Google Spreadsheet, I don't see a way to access the script (even though when I created the script, I created it as a spreadsheet script). In the spreadsheet, the "Tools->Script manager..." menu item doesn't show my script, nor does the "Tools->Script editor...". The latter has a section for 'recent projects', but it doesn't list my newly created script, nor its associated project. If I create a new script from inside the spreadsheet (i.e .Tools->Script editor...) and cut and paste the code from the

google speadsheet api onOpen does not work on mobile ios

随声附和 提交于 2019-11-30 10:01:39
问题 I tried working on the onOpen code and it works on google chrome on macbook but when I use it on google chrome on mobile ios the onOpen it doesnt call. function onOpen() { Logger.log("OK") } Is there anyone api for mobile ios or other method to make onOpen works on mobile? 来源: https://stackoverflow.com/questions/50784573/google-speadsheet-api-onopen-does-not-work-on-mobile-ios