google-spreadsheet-api

Updating cell in Google Spreadsheets returns error “Missing resource version ID” / “The remote server returned an error: (400) Bad Request.”

感情迁移 提交于 2019-12-10 10:14:17
问题 I would like to update a cell value in Google Spreadsheets but unfortunatelly an error is received: Google.GData.Client.GDataRequestException was unhandled HResult=-2146233088 Message=Execution of request failed: https://spreadsheets.google.com/feeds/cells/1nW8nxoS2l9pbj6dctreEfKHNXmsfbbsCAvOd7TIj4Bo/od6/private/full/R1C1 Source=Google.GData.Client ResponseString=Missing resource version ID StackTrace: at Google.GData.Client.GDataRequest.Execute() ... at System.Threading.ThreadHelper

How do I set OAuth2 Google Credentials for Spreadsheet Service?

元气小坏坏 提交于 2019-12-10 09:53:59
问题 I took example from here. But my code below gives me " The method setOAuth2Credentials(GoogleCredential) is undefined for the type SpreadsheetService ". import com.google.api.client.googleapis.auth.oauth2.GoogleCredential; import com.google.api.client.http.HttpTransport; import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.client.json.jackson.JacksonFactory; import com.google.gdata.client.spreadsheet.SpreadsheetService; import com.google.gdata.data.spreadsheet

How to update/write data to google spreadsheet api android (api v4)

允我心安 提交于 2019-12-09 06:30:22
问题 I have been working on an application where I need to write and update data to a spreadsheet using google spreadsheet api. I have followed the Android Quickstart provided by google Google Sheets API Android Quickstart and was able to retreive data from the google spreadsheet but I am not able to understand how to write data. Please help 回答1: If you followed the Quickstart tutorial correctly, then it you are few steps from learning how to write data. In the code provided in the Quickstart

Java to Google Spreadsheet

依然范特西╮ 提交于 2019-12-09 04:50:09
问题 I was trying to do programming using Java to connect to Google Spreadsheet to do data retrieval or modifying data in the cells. My Google spreadsheet link is https://docs.google.com/spreadsheets/d/1UXoGD2gowxZ2TY3gooI9y7rwWTPBOA0dnkeNYwUqQRA I looked at the Sheets API and it requires link like https://spreadsheets.google.com/feeds/worksheets/key/private/full I have tried different forms of the links, such as: https://spreadsheets.google.com/feeds/worksheets

How to use one code for multiple spreadsheets that can be updated, attempt to use Library

蹲街弑〆低调 提交于 2019-12-09 04:25:00
问题 I have 200+ spreadsheet that our customers fill. I developed a script to manage the spreadsheets which is basically identical in function. The problem is when I modify the script I need to change it in all these sheets. I tried using libraries but with no success and I hoping to hear if someone knows an answer. The library version I include (with development on) in each spreadsheet does not show the change ensued. It will only show the results at the time of inclusion, which means that in

Google Apps Application APIs: Is there a better way to find correspondance between a Documents List API Document and a Spreadsheets API Spreadsheet?

前提是你 提交于 2019-12-08 19:55:33
There is a task, using the .NET library for the Google Data API , to traverse across Google Drive folders, find required spreadsheets and change data of the selected spreadsheets. Folders traversing is performed using the Google.GData.Documents.FolderQuery and other classes of the Google.GData.Documents namespace. After a correct document is found is necessary to manage it using the Google.GData.Spreadsheets.Spreadsheet class. Now I find a correspondence between the Google.GData.Documents.DocumentEntry class and the Google.GData.Spreadsheets.Spreadsheet class instances by extracting the

Google Sheets Number of columns

怎甘沉沦 提交于 2019-12-08 18:22:27
I want to read a sheet and i want to know it's dimensions (number of columns, number of rows). What is the easiest way to obtain these? From Get get = Sheets.getSheetsService().spreadsheets().values().get(spreadsheetId, sheetRange); I want to know the number of columns, that contain data, I don't want the actual size of the sheet, since there might be lots of empty cells. Is this possible in any way? When you say you " don't want the actual size of the sheet, since there might be lots of empty cells. " Not sure if you mean you just want the max data range, last row and last col with data? or

Set cell background color and text size using Google Java API

回眸只為那壹抹淺笑 提交于 2019-12-08 15:26:48
问题 I want to set Spreadsheet cell background color and text size. I use this Java code to set the text into the cell but I can't find a solution how to set the style. CellData setUserEnteredValue = new CellData() .setUserEnteredValue(new ExtendedValue() .setStringValue("cell text")); Is there any solution? 回答1: AFAIK this is not possible in the Java Spreadsheet API, you instead have to use the Apps Script; https://developers.google.com/apps-script/reference/spreadsheet/ From their documentation,

Write Google sheet cell

拜拜、爱过 提交于 2019-12-08 15:05:13
问题 I try to find how modify or write a cell in a google sheet. I success to read my sheet (on my drive) with quickstart guide (I had copied and pasted this code : https://developers.google.com/sheets/quickstart/ios#step_3_set_up_the_sample). I had just changed the url by : https://sheets.googleapis.com/v4/spreadsheets/my_spreadsheet_Id/values/Feuil1!A1:F . But impossible to find a code to write on cells of my sheet... when i look : https://developers.google.com/sheets/guides/values#methods. I

How to import Drive API Client Library for Java and Google Sheets API version 3.0

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 13:27:23
问题 After weeks of struggling with the documentation and plenty of forums I found out how to use both the Drive API Client Library for Java and Google Sheets API. I feel that the documentation especially for android is very lacking so I thought it would be useful to make a post explaining how to import the API's for Android. This is the post I wish I could have found when I started with these two libraries, I hope this helps someone who might have run into my problems.. 回答1: Note: this is for