【问题标题】:Google Documents List API v3 - How to create a folder?Google Documents List API v3 - 如何创建文件夹?
【发布时间】:2012-06-21 12:02:35
【问题描述】:

我尝试按照https://developers.google.com/google-apps/documents-list/#creating_a_new_document_or_file_with_metadata_only 的说明创建一个新文件夹

我使用了 term="http://schemas.google.com/docs/2007#folder 而不是 term="http://schemas.google.com/docs/2007#document。

但是,我得到一个 HTTP 状态 200 并且没有创建文件夹。即使我使用 term="http://schemas.google.com/docs/2007#document 结果是一样的。

我在搜索中发现了这种方法的问题,我尝试发帖到https://docs.google.com/feeds/default/private/full/folder%3A 现在,我收到 400 错误。

我们将不胜感激。

最好的问候, 卡提克

【问题讨论】:

    标签: google-docs-api


    【解决方案1】:

    要创建文件夹,请使用以下 xml 正文向 https://docs.google.com/feeds/default/private/full 发送 POST 请求:

    <?xml version='1.0' encoding='UTF-8'?>
      <entry xmlns="http://www.w3.org/2005/Atom">
      <category scheme="http://schemas.google.com/g/2005#kind"
        term="http://schemas.google.com/docs/2007#folder"/>
      <title>Example Collection</title>
    </entry>
    

    更多详情,请查看文档中的具体部分:https://developers.google.com/google-apps/documents-list/#creating_collections

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-08
      • 1970-01-01
      • 1970-01-01
      • 2019-05-02
      • 2017-10-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多