【问题标题】:Finding the content element of a gdata entry查找 gdata 条目的内容元素
【发布时间】:2012-07-07 19:51:33
【问题描述】:

Google 文档列表 API (v3) 多次引用“内容元素”。在内容元素中有一个用于导出文件的 URI 和文件的 mime 类型。

如何找到内容元素并提取该信息?

谢谢!

【问题讨论】:

    标签: google-docs gdata gdata-api


    【解决方案1】:

    我使用 google oauth playground 提出了一个示例请求 - 在 pastebin 上发布了回复...

    在 'title' 元素之后,您可以看到您请求的 'content' 元素以及包含 node=export 的 URI。

    "content":{
    "type":"text/html",
    "src":"https://docs.google.com/feeds/download/documents/export/Export?id\u003d1mCHy6rcaqFoyZaJ-3qwRBZyirxnmew1m4CfEtOWAhjw\u0026v\u003d3"
    },
    

    一旦我通过了 Playground 的身份验证,我就在这个例子中使用了以下请求:

    https://docs.google.com/feeds/default/private/full?v=3&alt=json&max-results=1
    

    在我的回答 here 中使用 Playground 和 json prettyprint 指令

    【讨论】:

      猜你喜欢
      • 2013-01-21
      • 2012-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-11
      • 2017-03-08
      • 1970-01-01
      相关资源
      最近更新 更多