google-docs-api

Google Docs/Drive API does not permit a new document to be inserted into a new Google account

断了今生、忘了曾经 提交于 2019-12-07 19:29:59
问题 We have identified an issue with the Google Docs/Drive APIs that is consistently reproducible, and appears to be a new bug introduced a few weeks ago. To see the issue, follow these steps: Create a brand new Google account, but do NOT do anything in that account (do not click on Drive to view Google Drive) -- just create it and close that window. Attempt to insert a new (empty) document via the Google Docs API (we use Zend GData for that) or the new Google Drive API. Result: With old Google

How to import a page break from html to google docs?

六月ゝ 毕业季﹏ 提交于 2019-12-07 19:26:40
问题 I'm trying to export a document in html and import it again (for the purpose of the test I don't even edit the file). After exporting, I can see that the page break is kept in the html : <hr style="page-break-before:always;display:none;"> But after I import this file into google docs, and do the conversion, the page break is not materialized in the document. I can only see a line where the pagebreak should be. Is there is a way to make it working ? PS: I'm using the python gdata v3 API. 回答1:

How to determine if the account is a Google apps account?

别等时光非礼了梦想. 提交于 2019-12-07 15:26:32
问题 I am using the Google documents list api for .net V3(dll version 2.0.1.0). I am using client login authentication as described in this link https://developers.google.com/google-apps/documents-list/#authorizing_requests_with_clientlogin How can i determine if its a Google apps account or a normal Google account? Thanks, Bharath 回答1: Google consumer accounts are @gmail.com or rarely @googlemail.com , the rest will be Google Apps accounts. 回答2: If your goal is to check whether an user has access

Programmatically edit a Google doc with JavaScript

℡╲_俬逩灬. 提交于 2019-12-07 06:19:59
问题 What I'm trying to do is run some JavaScript code that will enter text into a Google doc. What I have done so far is create an iframe element on my personal web page that embeds Google Docs. What I want to do, for now, is use functions from Google's source code to input the text. When I use the Chrome inspector along with a js beautifier, I found that if I listen for a keypress event, I get brought to the following code segment: function dKa() { var a = eKa, b = TJa ? function(c) { return a

Google docs viewer url parameters

天涯浪子 提交于 2019-12-06 20:29:21
问题 Is there any sort of documentation on exactly what parameters you can put in the url of Google viewer? Originally, I thought it was just url,embedded,chrome, but I've recently come accross other funny ones like a,pagenumber, and a few others for authentication etc. Any clues? 回答1: One I know is "chrome" If you've got https://docs.google.com/viewer?........;chrome=true then you see a fairly heavy UI version of that doc, however with "chrome=false" you get a compact version. But indeed, I'd

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 upload documents with new python-gdata (2.0.16)?

纵然是瞬间 提交于 2019-12-06 14:42:46
问题 With python-gdata 2.0.14, I used the following pieces of code to create and upload documents: # To create a document import gdata.docs import gdata.docs.client from gdata.data import MediaSource gdClient = gdata.docs.client.DocsClient(source="my-app") gdClient.ssl = True gdClient.ClientLogin("login", "pa$$word", gdClient.source) ms = MediaSource(file_path="temp.html", content_type="text/html") entry = gdClient.Upload(ms, "document title") print "uploaded, url is", entry.GetAlternateLink()

Uploading a PDF file to Google Docs generated by pdfjet on GAE/J

回眸只為那壹抹淺笑 提交于 2019-12-06 13:34:06
I need to upload a PDF file to users google docs which is generated by pdfjet on google app engine. I figure out to generate pdf using pdfjet for gae/j. pdfjet uses streams to create the pdf. Is there anyway to convert stream to file so I can upload to users google docs. I tried gaevfs but couldn't make it work. I can use another pdf generation solution if needed or another virtual file system etc. PDF generation code ByteArrayOutputStream os = new ByteArrayOutputStream(); PDF pdf = new PDF(os); Google Docs API code DocumentListEntry newEntry = new PdfEntry(); newEntry.setTitle(new

How to import a page break from html to google docs?

依然范特西╮ 提交于 2019-12-06 09:10:47
I'm trying to export a document in html and import it again (for the purpose of the test I don't even edit the file). After exporting, I can see that the page break is kept in the html : <hr style="page-break-before:always;display:none;"> But after I import this file into google docs, and do the conversion, the page break is not materialized in the document. I can only see a line where the pagebreak should be. Is there is a way to make it working ? PS: I'm using the python gdata v3 API. I've also been looking for this. It seems this is as easy as adding: <hr class="pb"> Credit: https:/

Reference file in Google drive in Google Spreadsheet

回眸只為那壹抹淺笑 提交于 2019-12-06 07:27:15
I have created a folder in Google Drive, e.g. test, and put 3 files inside it a.jpg, b.jpg, c.jpg I want in my Google Spreadsheet under the same account, to access the files, e.g. generate the link to image file, is it possible? e.g. ColA ColB a.jpg [generate link to a.jpg in drive] a.jpg [generate link to b.jpg in drive] a.jpg [generate link to c.jpg in drive] Yes its possible. Google for 'host website on google drive' for detailed instructions. Basically first share the folder as public, copy the folder id from its url and make a new url googledrive.com/host/folderid/a.jpg With GScripts you