Google文档查看器的API

时间:2012-04-12 17:41:35

标签: google-docs-api

请参考thread下面的Google Documents List API Group,有人请建议我解决。

    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

现在,有人可以向我提供一个Java示例代码,将“xmlns”设置为“http://schemas.google.com/docs/2007#embed”到文档条目。我收到了一个InvalidEntryException。         com.google.gdata.util.InvalidEntryException: Invalid request URI GDatainvalidRequestUriInvalid request URI 所以请建议我一个可能的解决方案来解决这个问题。

1 个答案:

答案 0 :(得分:1)

+1到这个

  

块引用   现在,有人可以提供一个Java示例代码,将“xmlns”设置为“http://schemas.google.com/docs/2007#embed”到文档条目。我收到了一个InvalidEntryException。 com.google.gdata.util.InvalidEntryException:无效的请求URI GDatainvalidRequestUriInvalid请求URI因此,请建议我解决此问题的可能解决方案。

阅读此thread后,即使我正在寻找一个java示例,如何将'xmlns'设置为'http://schemas.google.com/docs/2007#embed'到文档条目。