google-spreadsheet-api

Getting the cursor row/column from a Google spreadsheet through a Javascript method

亡梦爱人 提交于 2019-12-01 08:53:34
问题 On 29 Mar 2010, Jason Hale wanted to use the spreadsheet cursor location to select an e-mail address for a Javascript app he was writing - See http://productforums.google.com/forum/#!topic/apps-script/U10q44vptPU. Respondents suggested the getActiveSelection and concomitant getRowIndex/getColumnIndex methods. Unfortunately, they didn't work for Hale and they didn't work for me two years later when I wanted to write a similar application. The cursor's location has no effect on getRowIndex and

Finding last written row in Google Spreadsheet API

孤人 提交于 2019-12-01 08:02:59
问题 Is there any way to find the last row you have written in a google spreadsheet in Java? I tried to do that by having a variable which I keep in another file and I update that every time I do another writing. Is there any other way? 回答1: Finding last written row in Google Spreadsheet API I'll give you a concept first using REST calls but you'll have to apply that in Java. Exceed the range of cells where you're writing. So to find last written row between cells A1:A10, use the range A1:A11 or

How to convert from gid to od* (worksheet id) in new Google spreadsheets

别来无恙 提交于 2019-12-01 07:13:56
问题 I am using Gdata api to update Google spreadsheet cell. Now New Google spreadsheet has been released and it seems the gid has over 8 digits. The following is sample new sheets and the gid of sheet2 is 1794189920. https://docs.google.com/spreadsheets/d/1S6mvGGoOJa8JF6Qt6GGH5QT-X0HD4EjZhKNbihAwFuE/edit?usp=sharing I tried to convert them with the following method, but doesn't work. How to convert Google spreadsheet's worksheet string id to integer index (GID)? Thanks to anyone who can help shed

Accessing a Google Drive spreadsheet from Appengine

女生的网名这么多〃 提交于 2019-12-01 06:25:24
问题 I have an appengine app that needs to access a single, hard-coded spreadsheet on Google Drive. Up until now I have been achieving this as follows: SpreadsheetService service = new SpreadsheetService("myapp"); service.setUserCredentials("myusername@gmail.com", "myhardcodedpassword"); When I tried this today with a new user, I got InvalidCredentialsException even though the username and password were definitely correct. I got an email in my inbox saying suspicions sign-ins had been prevented,

How to use SpreadsheetsService authenticated by ServiceAccountCredential?

六月ゝ 毕业季﹏ 提交于 2019-12-01 05:13:12
I need to use SpreadsheetsService, but I don't find the way in the official documentation .net . https://developers.google.com/google-apps/spreadsheets/?hl=ja#authorizing_requests I have my service authenticated: String serviceAccountEmail = "serviceAccount@developer.gserviceaccount.com"; var certificate = new X509Certificate2(@"privatekey.p12", "pass", X509KeyStorageFlags.Exportable); ServiceAccountCredential credential = new ServiceAccountCredential( new ServiceAccountCredential.Initializer(serviceAccountEmail) { Scopes = new[] { DriveService.Scope.Drive } }.FromCertificate(certificate));

How to use SpreadsheetsService authenticated by ServiceAccountCredential?

孤街浪徒 提交于 2019-12-01 02:42:28
问题 I need to use SpreadsheetsService, but I don't find the way in the official documentation .net . https://developers.google.com/google-apps/spreadsheets/?hl=ja#authorizing_requests I have my service authenticated: String serviceAccountEmail = "serviceAccount@developer.gserviceaccount.com"; var certificate = new X509Certificate2(@"privatekey.p12", "pass", X509KeyStorageFlags.Exportable); ServiceAccountCredential credential = new ServiceAccountCredential( new ServiceAccountCredential.Initializer

Authorizing requests with OAuth 2.0 in Google Spreadsheet API

扶醉桌前 提交于 2019-11-30 22:37:45
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/developers_guide.html#Auth It says we should use OAuth 2.0 protocol, this is ok. But it also says during the

How to get access to a private spreadsheet from the API?

半世苍凉 提交于 2019-11-30 20:34:52
问题 Hello I need to get access to a spreadsheet from google spreadsheet API. I have enabled Google Sheets API and added API key, but this doesn't work!!! https://sheets.googleapis.com/v4/spreadsheets/[my_spreadsheet_id]/values/A1?key=[my_api_key] The result is: 403 - The caller does not have permission But if I provide public access for this spreadsheet ---> it works!!! The result is: 200 - [correct requested data .....] The my question is: How to get access to a private spreadsheet from the API?

How to programmatically create a Google Docs spreadsheet WITH CONTENT?

允我心安 提交于 2019-11-30 19:16:22
I have found multiple StackOverflow questions dealing with how to create or edit Google Doc spreadsheets using the Google Spreadsheets API , or older API's. However, this Spreadsheets API seems to be part of the "gdata" library, which to my understanding is deprecated. Newer StackOverflow answers show how to create an empty spreadsheet using the Drive API, which seems more current. However, from looking at the documentation and examples for that API, it seems to only let you create new EMPTY files with the spreadsheet MIME type. I have not found any functionality for creating a spreadsheet

Getting Error in retrieving data from Google Spreadsheet API using Structure Query (sq) in Android

走远了吗. 提交于 2019-11-30 18:20:20
问题 I am working with Google Spreadsheet API in Android. I am successfully done with the integration and able to retrieve the rows. But facing a little problem in search functionality. I am having 3-4 different search for the spreadsheet. The problem is that in my spreadsheet in some columns I am having space between words. For e.g Hello World is a value in row number 5 and the header name for this row is let say test. So when i search for the Hello World it is throwing InValidEntryException :