google-docs-api

How to get a note or comment

爱⌒轻易说出口 提交于 2019-11-29 15:19:15
I have an Excel containing cell comments/notes, I've uploaded it to Google Drive, and converted it into a Google Spreadsheet. How may I retrieve the comments for cell A1? The API doesn't describe how to get a note or comment from a cell. Mogsdad The Google Apps Spreadsheet API only provides programmatic access to spreadsheet data. You cannot access comments using the API. You can get the Notes for a cell or range of cells using Google Apps Script. See the Class Range documentation for these methods: getNote() - Returns the note associated with the given cell. getNotes() - Returns the notes

Unexpected exception upon serializing continuation

天大地大妈咪最大 提交于 2019-11-29 15:17:48
I get this error: Unexpected exception upon serializing continuation (not much help) It is caused by the FetchUrlApp.fetch(); call. I akm using Google Apps Script for Sites, not Google Spreadsheets. The code works in the original instance but as soon as I copy and paste the code into a new project I get the above error message. I am accessing Google Docs APIs. I have read on other forums that I need authorization but I have been unable to gain the right authorization for the code to work. No prompt ever pops up when I run a copy of the code for the first time. Code exert: var oauthConfig =

Add an writer to a spreadsheet via “Google Document List API”

試著忘記壹切 提交于 2019-11-29 08:50:28
I'm writting a script in Google Aps (GAS) and I need to add a user(/writer) (administrator of the domain) to a spreadsheed of a another user. The script is running/invoked under administrator privilegies. First I use "Google Apps administrative access to impersonate a user of the domain" and I get a list of his documents (spreadsheets) and I get the Id of the documents. var oauthConfig = UrlFetchApp.addOAuthService("docs"); oauthConfig.setAccessTokenUrl("https://www.google.com/accounts/OAuthGetAccessToken"); oauthConfig.setRequestTokenUrl("https://www.google.com/accounts/OAuthGetRequestToken?

Can a Google Apps Admin manage users files with Drive SDK?

房东的猫 提交于 2019-11-29 07:08:51
The new Drive SDK is very good for the authenticated user. Is it possible use Drive SDK using Google Apps administrative access to impersonate other domain users? The doclist API can do it but it's not possible manage and copy files (pdf, jpg) with this tool. I'm using Java with this code: credential_origine = new GoogleCredential.Builder().setTransport(HTTP_TRANSPORT) .setJsonFactory(JSON_FACTORY) .setServiceAccountId("[email from console api]") .setServiceAccountScopes(DriveScopes.DRIVE) .setServiceAccountUser("user@domain.com") .setServiceAccountPrivateKeyFromP12File(new File("key.p12"))

writing to Google Drive spreadsheet

折月煮酒 提交于 2019-11-29 00:35:27
I read tons about the Google Drive API, Google Sheets API, and others, but with all the versions changing all the time I didn't understand what I should use... I have a android app, and all I want to do it to write text to a existing Google Drive spreadsheet. Example: Just have a edittext where I can put text and put it in a specific cell in the spreadsheet. The spreadsheet is in a folder that is shared with some people, and I want the user to enter a mail address and than (after I make sure that the folder is shared with him) can write to the spreadsheets in the folder. Also retrieving text

How can developers edit a Google Doc programmatically? Is there a Docs API?

耗尽温柔 提交于 2019-11-28 21:34:19
问题 There doesn't seem to be (to my knowledge) an API to edit Google Docs (not spreadsheets, their HTML based documents). Has anyone done something like the? Maybe by downloading the HTML version, editing and uploading the changes? 回答1: Not really sure if this is what you're looking for exactly but have you taken a look here http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html It looks like it allows editing for content (v3.0 anyway). 回答2: UPDATE (May 2019) The Google

How do I connect Android apps with Google Sheets spreadsheets?

泄露秘密 提交于 2019-11-28 20:48:40
I'm trying to do an Android app that needs to work with Google spreadsheet API. I'm new in this, so I'm starting with the version 3 of the api: https://developers.google.com/google-apps/spreadsheets/ I followed all the steps, downloaded all the jar files to lib subfolder in my project folder and then I added to the build path in Eclipse as usual. So although there is no Java example to perform Oauth 2.0, I just tried to declare: SpreadsheetService service = new SpreadsheetService("v1"); but when I emulate this simple line it gives me an error: java.lang.NoClassDefFoundError: com.google.gdata

Google Docs viewer returning 204 responses, no longer working, alternatives?

女生的网名这么多〃 提交于 2019-11-28 18:57:02
UPDATE 2016-11-16 9:53am EST It appears many people are still seeing 204 responses even though Google has claimed to have "fixed" the problem. When I myself tested the loading of a document 50 times, 3 of those times Google returned a 204 response. Please visit this URL and post a comment of your unhappiness so that we can finally get Google to address and fix the issue once and for all: https://productforums.google.com/forum/?utm_medium=email&utm_source=footer#!msg/docs/hmj39HMDP1M/SR2UdRUdAQAJ UPDATE 2016-11-04 6:01pm EST It looks like the service is up and working again! Thanks to Google

Remove sign in button in google docs webview in android

江枫思渺然 提交于 2019-11-28 13:32:49
I am showing PDF files by using google docs in WebView in android. How to remove or hide "Sign In" button? I have attached screenshot below. Thanks in advance. webview = (WebView) findViewById(R.id.webView1); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl("https://docs.google.com/viewer?url=http://www.ex.com/terms.pdf"); webview.setWebViewClient(new WebViewClient() { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return false; } }); Add the embedded=true parameter. webview = (WebView) findViewById(R.id.webView1); webview

Google Sheets & Docs Script fails to create add-on menu when add-on is installed from Chrome store

断了今生、忘了曾经 提交于 2019-11-28 12:01:17
问题 Possible cause is the following: Usually this is caused by a problem with the Authorization Lifecycle, specifically the opening stage. The most common culprit is a global variable in the code that tries to access Google services without authorization, like: var doc = DocumentApp.getActiveDocument(); See the documentation: Warning: When your onOpen(e) function runs, the entire script is loaded and any global statements are executed. These statements execute under the same authorization mode as