google-docs-api

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

若如初见. 提交于 2019-11-27 11:20:38
问题 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

Download a spreadsheet from Google Docs using Python

懵懂的女人 提交于 2019-11-27 06:07:50
Can you produce a Python example of how to download a Google Docs spreadsheet given its key and worksheet ID ( gid )? I can't. I've scoured versions 1, 2 and 3 of the API. I'm having no luck, I can't figure out their compilcated ATOM-like feeds API, the gdata.docs.service.DocsService._DownloadFile private method says that I'm unauthorized, and I don't want to write an entire Google Login authentication system myself. I'm about to stab myself in the face due to frustration. I have a few spreadsheets and I want to access them like so: username = 'mygooglelogin@gmail.com' password = getpass

Upload an image to a Google spreadsheet

江枫思渺然 提交于 2019-11-27 04:34:26
I am making a photo shooting contest, the competitor should register using a Google registration form, and upload his photo as well. I searched all over the internet to find a Google script that can be inserted into a form to upload a file using Google forms but could not find anything. Is it doable and how, and even if there can be other ideas to do such thing please let me know. Suits999 Try this function insertImage() { // Retrieve an image from the web. var resp = UrlFetchApp.fetch("http://www.google.com/intl/en_com/images/srpr/logo2w.png"); // Create a document. var doc = DocumentApp

inject external javascript file in google app script(Google Docs) [closed]

吃可爱长大的小学妹 提交于 2019-11-27 03:44:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . Please let me know how to inject external javascript file in google app script(Google Docs). Thanks in advance. 回答1: Depending on what you mean by Inject, one possible answer is to use the standard javascript eval() function along with UrlFetchApp: eval(UrlFetchApp.fetch('http:/

Google Drive\\Docs API for Android

被刻印的时光 ゝ 提交于 2019-11-27 03:12:13
I integrated Dropbox with my app in a matter of hours as the SDK was clearly described and had good examples of usage. Google Drive seems to only have a "one size fits all" Gdata SDK which is very heavy (with the many dependencies, it triples the size of my app) and not very intuitive as it is so low level. I'm sure it makes perfect sense when you know how to use it but as I cannot find any real samples of usage I am really struggling. Are there any sample apps available that I can look at and learn from? If not, if anybody has a simple example of uploading and downloading files to get me

Creating anchored comments programmatically in Google Docs

旧城冷巷雨未停 提交于 2019-11-27 01:24:52
I have been unable to programmatically create a comment that is anchored to specific text in a Google Doc using an app script with the document. Google documentation about how to create an anchored comment using the Google Drive API: https://developers.google.com/drive/web/manage-comments Here is the code I have to create the comment in the doc: Drive.Comments.insert({ "kind": "drive#comment", "author": { "kind": "drive#user", "displayName": USER_EMAIL, "isAuthenticatedUser": true, }, "content": CONTENT, "status": "open", "anchor": "{'r':" + REVISION_ID + ",'a':[{'txt':{'o':" + STARTING_OFFSET

Upload an image to a Google spreadsheet

流过昼夜 提交于 2019-11-26 22:15:16
问题 I am making a photo shooting contest, the competitor should register using a Google registration form, and upload his photo as well. I searched all over the internet to find a Google script that can be inserted into a form to upload a file using Google forms but could not find anything. Is it doable and how, and even if there can be other ideas to do such thing please let me know. 回答1: Try this function insertImage() { // Retrieve an image from the web. var resp = UrlFetchApp.fetch("http:/

How to update DocsList to DriveApp in my code

≡放荡痞女 提交于 2019-11-26 20:58:12
My script that generates a pdf document from a template within Google Drive and emails it to a recipient based on columns in a spreadsheet stopped working today due to the depreciation of DocsList. See here: https://developers.google.com/google-apps/documents-list/ I have tried updating following this guide https://developers.google.com/drive/web/migration to update all instances of DocsList with DriveApp, but I cannot get it to work. Could somebody please help me update this script to work properly? I have 6 instances of "DocsList" in this script, and I was able to update some of them

Download a spreadsheet from Google Docs using Python

蓝咒 提交于 2019-11-26 11:52:25
问题 Can you produce a Python example of how to download a Google Docs spreadsheet given its key and worksheet ID ( gid )? I can\'t. I\'ve scoured versions 1, 2 and 3 of the API. I\'m having no luck, I can\'t figure out their compilcated ATOM-like feeds API, the gdata.docs.service.DocsService._DownloadFile private method says that I\'m unauthorized, and I don\'t want to write an entire Google Login authentication system myself. I\'m about to stab myself in the face due to frustration. I have a few

Permanently delete file from google drive

走远了吗. 提交于 2019-11-26 09:56:47
问题 How permanently delete file on google drive using google script I find only method setTrashed. It moved file into Trash, but how remove file permanently 回答1: Apps Script has the ability to access Google API's, but you need to explicitly enable them before they can be used. The Drive API, can be used to delete a file. Drive API - Delete The Drive API method is Remove method instead of Delete . To enable the Drive API, open the Resources menu, then choose the Advanced Google Services, and a