google-spreadsheet-api

Sharing authentication/token between Android Google Client API and SpreadSheet API 3.0

心不动则不痛 提交于 2019-12-06 22:15:32
I have two modules in my project. The first is responsible for creating a folder and a spreadsheet in the google drive. The second is responsible for inserting rows in the spreadsheet. For the first module I am referring to the sample here . For Second module I am referring the examples here . Is there any way I can use the authentication done in the first module using the GoogleAPIClient in the second module without trying to authenticate again. Also for information the second module runs in an AsyncTask inside a service. Any suggestion how to do this? Finally ended up using below : String

How to run custom function by hovering or clicking on cell in google spreadsheet?

自古美人都是妖i 提交于 2019-12-06 19:37:23
I need help to make a table which will have a cells as product thumbnails and by hovering or clicking on this small image, I want to show the pop up with big image of product. ( Right now it works as hyperlink, but it is not enough ) I know we have a few ways how to run function right now: from a custom spreadsheet function from a trigger (from spreadsheet like on open, on edit or on form submit, or Time driven) from a custom menu (which must be created by e.g. on open) from a custom user interface (which must be created by e.g. on open) from a drawing or chart from the script editor Is there

How to update spreadsheet using Google Sheets API + Javascript

家住魔仙堡 提交于 2019-12-06 16:35:28
I have a small javascript site that gets data from my google spreadsheet and shows this data to the end user. I also want to eventually update this spreadsheet (e.g. insert some rows), but I'm totally stuck with it. To retrieve data from the sheet I use this document . It also contains some information about updating spreadsheet, but I'm not sure if this works. I tried: jQuery $.post(...) to create a POST request as described in the document but without success) Create request using the Postman app - getting "Page not found" response Can anyone help me with this problem? :'( For updating

Google Spreadsheets function to get a cell from a range by row and col name

感情迁移 提交于 2019-12-06 16:15:23
问题 I have a range idz01 idz04 ida02 foo a 1 b bar c 3 8 baz 8 2 g And I want to get values from this range, like this: SOME_FUNCTION(rangeID, 'foo', 'idz04') to get 1 , etc. Or ideally, to get the cell: INDIRECT(SOME_FUNCTION(rangeID, 'foo', 'idz04')) or such. Is there something such? Can the GETPIVOTDATA() be used for that? Edit: I could somehow employ the LOOKUP if I was able to get the result_range : LOOKUP("foo", DataRange, FIRST_COL( OFFSET(DataRange, MATCH("idz04", FIRST_ROW(DataRange), 0)

Google Spreadsheet API with PHP

天涯浪子 提交于 2019-12-06 15:09:25
问题 I want to read from and write to Google spreadsheet using google spreadsheet API, After long battle I was able to get access token and stored it in a session variable, but i don't understand how to exchange this token to get contents from spreadsheet and to update spreadsheet. I was trying with below code to get a cell content. But nothing is being returned. <?php session_start(); $url = 'https://spreadsheets.google.com/feeds/cells/0AgxnPrGJ8****************RkMwSkZoQ2pXaFE/4/private/full/R2C2

How do I Hide a sheet?

浪尽此生 提交于 2019-12-06 14:08:53
How do I hide some sheets in a spreadsheetApp with googleScript? I have a spreadsheet with multiple sheets, and I want to reduce the spreadsheet to only the first visible sheet and all the other hidden, using googlScript sheet.hidesheet() It's been added. I too am looking for that same answer. As far as I can tell SpreadsheetApp, Spreadsheet and Sheet classes dont have any Hide/Unhide methods. However I use the following code to set sheet protection on all sheets in a spreadsheet, to iterate through all sheets and protect them, same could be applied to Hide/UnHide if it is supported. function

Unable to complete the HTTP request when using SpreadSheet API

≯℡__Kan透↙ 提交于 2019-12-06 13:17:39
I am developing a Google App Engine application which reads and edits a big SpreadSheet with around 150 columns and 500 rows. Beside the specific size (it may vary) I am looking for a way to improve performance since most of the times I get a 500 Internal Server Error (as you can see below). java.lang.RuntimeException: Unable to complete the HTTP request Caused by: java.net.SocketTimeoutException: Timeout while fetching URL: https://spreadsheets.google.com/feeds/worksheets/xxxxxxxxxxxxxxxxxxxxxxx/private/full In the code snippet below you can see how I read my SpreadSheet and which line throws

Using Spreadsheet API OAuth2 with Certificate Authentication

让人想犯罪 __ 提交于 2019-12-06 12:54:40
问题 I am trying to use Gdata Spreadsheet API with OAuth2. Using OAuth2.0 ClientID works with OAuth2WebServerFlow on a domain, But using Service Accounts / Certificate causes a 400 BAD Request The scopes used are https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.user.readonly https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds

Google Drive API says some files do not exist when in fact they do

匆匆过客 提交于 2019-12-06 12:47:56
问题 So, I've gotten to the point in my app where I can retrieve a list of spreadsheet documents from a user's Google Drive account by using the Google Spreadsheet API. I populate the file list in a ui control that users can click on to then retrieve the list of its worksheets. It's working as expected in some cases, but in others it is not. In my request, I use the url that comes back from the file list, and even so, the API responds with: Sorry, the file you have requested does not exist. Make

Move a sheet to a particular position using Python & the Google Sheets API

坚强是说给别人听的谎言 提交于 2019-12-06 09:56:46
I am trying to use the Google sheet API via python. So far I have been successful in performing some tasks. My problem is for example I have 4 sheets in a particular worksheet in the order of [sheet1][sheet2][sheet3][sheet4]. What I want is to manipulate the positions of the sheets. For example, sheet 4 would now be located at the second position. So now, the positions of the sheets would become [sheet1][sheet4][sheet2][sheet3] Is there a way to do this in python? Thanks! It should be definitely doable, because Google Sheets API supports this and the Google API Python Client is just a wrapper