Questions tagged [google-docs-api]

The Google Docs API lets you create and modify documents. Use for questions regarding programmatic manipulation of Google documents through the REST-API. Do NOT use for direct manipulation through Google Apps Script or for access through Google Drive API.

This tag was previously used for the Google Documents List API, which was sunset in 2015. It has been replaced by the Google Drive API, which uses the tag .

1550 questions
7
votes
3 answers

Google Docs API for Node.js

Is there a JavaScript API or third party framework for Google Docs that I can use in Node.js? Thanks
Van Coding
  • 24,244
  • 24
  • 88
  • 132
7
votes
2 answers

How to insert RichLink (Chip Block) in Google Docs using Google App Script

Google Docs has recently introduced a feature where we can refer to Date Person Google Drive Document in the form of a Chip Block (as shown in the picture above). The Document-A already exists in Google Drive. Currently the only way to generate…
bhavesh
  • 1,343
  • 2
  • 14
  • 23
7
votes
1 answer

Google Doc Api : download inline object

I'm creating a Google Doc to HTML converter, I want to use the Doc Api and not export it as HTML using the Drive Api : $service = new Google_Service_Docs($client); $request = $service->documents->get($docId); $elements =…
7
votes
1 answer

How can I change the way the google docs website displays a PDF in Android?

I am using the following link inside a WebView to show a pdf file in my android application: http://docs.google.com/gview?embedded=true&url=http://174.136.1.35/dev/android/1_android-Survey-Report-for-pdf-1200-x-768.pdf This works, and displays the…
Sudipta Som
  • 6,537
  • 9
  • 43
  • 67
7
votes
2 answers

How to update DocsList to DriveApp in my code

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:…
CalPal
  • 165
  • 1
  • 2
  • 10
7
votes
1 answer

GAS: prompt for user input with a default value

Consider the following Google apps script code: var ui = SpreadsheetApp.getUi(); var result = ui.prompt( 'How many days in advance you want to receive the event notification?', '', ui.ButtonSet.OK_CANCEL); I would like the dialog to show…
7
votes
1 answer

Programmatically Download Content from Drive Share Links

I'm building an application to automatically trigger a download of a file share with a user. For example, this was straight forward to implement for Dropbox links, as is outlined here. I'm trying to implement the same functionality for Google…
Cian
  • 1,579
  • 3
  • 14
  • 28
7
votes
1 answer

Can you use Google Docs as the text editor for your own application?

I know Google Drive has an API. Is there a way to use it to essentially use Google Docs as the rich text editor for an application? I.e. I would like to be able to do the following: Create a document. Edit a document as normal, but embedded within…
7
votes
1 answer

Is there a way to write to a Google docs spreadsheet from the Linux shell?

I have a cron job that exports some data to CSV every day. Is it possible to write this data directly to a Google doc (spreadsheet) from the Linux shell (Ubuntu)?
otmezger
  • 10,410
  • 21
  • 64
  • 90
7
votes
2 answers

How can I add a Google apps script to a spreadsheet created using the API?

After reading up a lot on the Google Spreadsheet API I have come to the conclusion that formatting (such as merging cells, changing fonts etc) is only available throught the Apps scripts. Since we need to create and fill the spreadsheets with data…
7
votes
3 answers

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

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…
Ridgh
  • 121
  • 1
  • 4
7
votes
2 answers

How to get long-lived access token Google API

In the Google documentation it says // Once the user authorizes with Google, the request token can be exchanged // for a long-lived access token. If you are building a browser-based // application, you should parse the incoming request token from…
Nikola Sivkov
  • 2,812
  • 3
  • 37
  • 63
7
votes
1 answer

Create new spreadsheet (Google API / Python)

I've managed to create a new spreadsheet doc using the following code: # Authorize client = gdata.docs.client.DocsClient(source='TestDoc') client.http_client.debug = False client.client_login(self.cfg.get('google', 'email'), self.cfg.get('google',…
Pastor Bones
  • 7,183
  • 3
  • 36
  • 56
6
votes
1 answer

Google Docs API - Impersonate User File Download

Using the Google Docs Java API with a Google Apps account, is it possible to impersonate a user and download a file? When I run the program below, it is clearly logging on to the domain and impersonating the user because it retrieves the details of…
6
votes
1 answer

iOS Objective-C wrapper for Google Docs

Has anyone integrated google docs into their iOS app? Having gone through the example code, the API for Google Docs is far more complicated than I would have expected, and the examples are all MacOS. Yes there is iOS support, but there is a…
PKCLsoft
  • 1,359
  • 2
  • 26
  • 35