google-docs-api

Google Docs API - Update linked tables

99封情书 提交于 2020-08-26 03:38:36
问题 I am trying to update tables in Google Documents with the new API. Tables are linked from a Google Sheet. I tried the API explorer in google cloud. I am able to extract the document in json format and then filter out the tables. But within the table json structure, I do not find anything that I can update, I do not find anything that links the table to a spreadsheet. It is plain text (from the cells in the spreadsheet). Here I am sharing one table from the json, with 2 rows and 1 column with

Download/Export Public Google Spreadsheet as TSV from Command Line?

孤街醉人 提交于 2020-07-17 07:18:25
问题 I have a public (published) Google spreadsheet that I’m trying to download programmatically in TSV form. In my browser, with a Google login active, for some actual key $key , https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=$key&exportFormat=tsv works and produces a TSV file. In my shell, however: curl -L "https://spreadsheets.google.com/feeds/download/spreadsheets/Export?key=$key&exportFormat=tsv" produces a bunch of javascript. curl -L "https://spreadsheets.google.com

Create PDF link to the last named version of a Google Document

落花浮王杯 提交于 2020-06-28 05:58:46
问题 I have a live document which is available for download on my website (a manual for a piece of equipment). I want to be able to make changes without these minor changes being visible to the user and so thought that using named versions would be ideal. But I can't see a way to link to the most recent named version. I'm sure I could use Google Script to create a second document and duplicate into it every time I name the version, but I was thinking there should be an easier way. The URL I'm

Import Google sheet data directly into R [closed]

筅森魡賤 提交于 2020-06-08 12:58:08
问题 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 3 years ago . Is it possible to import a table into R directly from Google docs without authorization key? I have a sharable google sheet that I try to connect to shiny app but couldn't find a proper way. 回答1: With the package gsheet you can read in a sheet from the shareable link. Example

Unable to add text to cell in new table row Google Doc via Docs API

Deadly 提交于 2020-06-01 05:09:59
问题 I want to insert text to cell of Google docs table but I met issue bellow: Google.Apis.Requests.RequestError\r\nInvalid requests[1].insertText: The insertion index must be inside the bounds of an existing paragraph. You can still create new paragraphs by inserting newlines. [400] \r\nErrors [\r\n\tMessage[Invalid requests[1].insertText: The insertion index must be inside the bounds of an existing paragraph. You can still create new paragraphs by inserting newlines.] Location[ - ] Reason