Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API for Google Docs Viewer

Please refer the below thread from Google Documents List API Group and someone please suggest me a solution.

    Hi again Jags,

    Sorry, I missed one thing, you might be able to use the embed link, i.e. that link with rel http://schemas.google.com/docs/2007#embed. That will give you a link to embed the resource.

    Regards


    On Tue, Mar 27, 2012 at 10:59 AM, Ali Afshar wrote:
    Hi Jags,

    Sorry, there is no real API there as such to do what you want to achieve. You should probably export it as a format that you can embed in your page.

    Regards


    On Sat, Mar 17, 2012 at 3:18 AM, Jags wrote:
    Hi,

    Can someone help me in figuring out if there is an API available to use Google Docs Viewer where I want to upload a document and it should give me a Google Docs View Url for the document so that I can embed it in our website. Currently in Docs Viewer, the only option I find is viewing a publicly available document by passing the url for it as a param as in http://docs.google.com/viewer?url=xxxxxxxxxx. Is this the only way that I can view in Google Docs. Please someone assist if I missing something.
  If this isn't possible by Docs Viewer is it supported in Google Docs where I'll upload it to user's google account and thereafter even the author of the document should have just a VIEW only option for the document.

    TIA,
    Jagadeesh

Now can someone please provide me a Java sample code to set the 'xmlns' as 'http://schemas.google.com/docs/2007#embed' to the document entry. I am getting an InvalidEntryException. com.google.gdata.util.InvalidEntryException: Invalid request URI GDatainvalidRequestUriInvalid request URI So please suggest me a possible solution to resolve this.

like image 479
Jagadeesh Avatar asked Apr 12 '12 17:04

Jagadeesh


People also ask

Does Google Docs have an API?

The Google Docs API lets you create and modify documents. Apps can integrate with the Docs API to create polished documents from both user and system-provided data. The API allows you to: Automate processes.

Is Google Docs API free?

All use of the Google Docs API is available at no additional cost. Exceeding the quota request limits doesn't incur extra charges and your account is not billed.

Is Google Docs Viewer free?

Note that you will need a Google/Gmail account to use Docs, but an account is 100% free. The viewer is helpful; it lets you zoom in or out and has page previews on the right-hand panel. If you are using Gmail, you also enable the Google Docs Preview lab and preview .


1 Answers

+1 to this one

Blockquote Now can someone please provide me a Java sample code to set the 'xmlns' as 'http://schemas.google.com/docs/2007#embed' to the document entry. I am getting an InvalidEntryException. com.google.gdata.util.InvalidEntryException: Invalid request URI GDatainvalidRequestUriInvalid request URI So please suggest me a possible solution to resolve this.

After reading this thread, even I'm looking for a java example ob how to set the 'xmlns' as 'http://schemas.google.com/docs/2007#embed' to the document entry.

like image 169
Rajesh Kumar M M Avatar answered Oct 11 '22 16:10

Rajesh Kumar M M