Skip to content

Writing .gdoc files from a web browser

lmmx edited this page Dec 26, 2014 · 22 revisions

.gdoc files are converted to Word but the format is very simple

{"url": "<b>URL</b>", "resource_id": "document: <b>ID</b>" }

in which the URL contains the ID:

https://docs.google.com/document/d/**ID**/edit?usp=docslist_api

thus the files can be written knowing just the ID ($ID):

{"url": "https://docs.google.com/document/d/$ID/edit?usp=docslist_api", "resource_id": "document: $ID" }

The files in a folder can be Javascript-parsed with:

<script src="https://gist.github.com/lmmx/0427b7540b496c70ea5c.js"></script>

Clone this wiki locally