Use google docs as an editor and viewer - google-docs

I am looking to use google docs editor and viewers for docs , sheets etc in my application.
i.e. the files are hosted in my application and just want to open the office files in the google docs UIs. So , just want to use google docs UIs not the google docs as a server.
As per the below SO thread it is not possible.
But was just wondering how BOX has achieved the same.
MS Office online supports the same use case through WOPI. So was looking for something similar for google docs.

Related

How to insert API data into Google Sheet/Doc

Is there a quick way to use web exposed APIs value in Google Sheet or Google Docs.
I've been researching a bit and I found Google Sheet API v4, but only applies to Google Sheet data or resources, not externals one in document.
EDIT: I don't want to develop a complete backend in Node nor Java (if possible), just a direct way to execute an script in Google Sheet/Doc, in order to get the data available.
Thanks!
The available "direct way" of operating on Google Docs or Google Sheets that's available is through Apps Scripts. For Sheets, there's Class Sheet and for Google Docs there's Document Service.

Is there any Web API for Google web clipboard?

Google Docs have a feature "Web Clipboard" to help users easily copy and paste cross google documents. (you can refer to https://drive.googleblog.com/2010/02/a-web-clipboard-for-google-docs.html)
But I am wondering that if there's any Web API or official way to access those API.
I try to find in Google Document List APi (https://developers.google.com/google-apps/documents-list/), I can't find any related stuff.
The original goal for me is I want to copy some screenshot/images/text from my Windows OS.
And I want to paste into my GoogleDoc Document.
But it can't be done unless the screenshot/image/text is update/upload into Web Clipboard.
I keep finding any related integrated tools or extension, but I still can't find anyone.
Could someone give me some suggestions?
There is no official way to access this API, sorry.
There is clearly an API of sorts, just not documented. I'd suggest looking at extensions like this one and trying to reverse-engineer the protocol so you can see what endpoints it is calling.
But it sounds like a lot of work.

How to integrate a Google Docs document in Liferay?

Is there any way that we can integrate Google Docs in Liferay? I found some other 3rd party APIs, like Zoho, but I would like to use Google Docs instead.
You can also write a hook that uses the Google Docs' API.
may be, you cat sync google docs with the server by some tools like here
http://www.pcworld.com/businesscenter/article/187184/google_docs_desktop_app_available_now.html
and then you can sync this desktop folder with liferay
http://www.liferay.com/products/liferay-sync/features
Liferay 7.2 DXP now available with Google Doc(Online Document Editing).
Check this : https://www.liferay.com/products/dxp/new

is there an API/specification about the google docs "native" format?

or, Can i create/modify google docs by 3rd application?
Google does not share info on their native, proprietary format--possibly called "kix" according to this StackExchange answer.
You CAN programmatically create, modify and destroy Google Drive document files in 3rd party apps (or build your own) by manipulating representations of those files exposed by various Google APIs and scripting services. It took a bit of truffle-hunting through the online documentation, but I did find a description of the structure of a Google Doc here: Extending Google Docs.
Again, this is a description of a representation of the file, not the file itself.

Integrating with Google Docs

Has anyone integrated an "Open in Google Docs" in their web app yet? Gmail has this for opening attachments. How about any other sightings of this in a non-google web app?
Google Docs does have an API which allows you to search, upload, delete and retrieve documents from the Google Docs list of a specific user. You could conceivably use this to upload a document from your server and then retrieve the URL of that document (once it is imported), which you can then use to redirect the user. It wouldn't be quite as slick as Gmail's integration since you wouldn't be able to show that fancy "Importing your document..." page, but it might suffice.
As for other sightings, I am not aware of any.
If you only need this functionality for yourself you could download the "Send to google docs" firefox extension. That will add a right-click menu on all document links on the web and allow you to open them in google docs.
You have to give a look to the Google Documents List Data API
There is a gdata objective-c implementation for the api access.
http://code.google.com/p/gdata-objectivec-client/

Resources