0

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

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

谢谢!

4

1 回答 1

0

我使用 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"
},

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

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

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

于 2012-07-08T14:11:21.500 回答