mobyboyy
(mobyboyy)
December 25, 2019, 7:52pm
#1
Hello! I’ve been stuck scratching my head while I attempt to figure out how to use the Google Docs API.
The issue is that Google provides an API library for most languages, and it doesn’t provide documentation for languages it doesn’t support.
On top of that, there’s no information on here about google docs, just sheets. And I want specifically docs.
Here’s what I want to do:
Get the text in a document
Delete and Insert text inside a document
I couldn’t find the API endpoints for any of these, just documentation for their own library.
3 Likes
I searched “Google Docs API Endpoint” and the first link appeared to have the Endpoint for creating blank document, editing that document, and getting the document.
I believe you may want to look at the /v1/documents/
endpoint regarding GET
and BATCHUPDATE
requests.
I also found this this Python Code Example on the official google site showing how to dump a google document’s contents into a JSON object.
3 Likes
mobyboyy
(mobyboyy)
December 26, 2019, 12:00am
#3
Ok, I figured something out, but I can’t figure out how to transfer line breaks from js (because they work in
only js for some reason) to lua.