我尝试按照https://developers.google.com/google-apps/documents-list/#creating_a_new_document_or_file_with_metadata_only上的说明创建一个新文件夹
我使用的不是term="http://schemas.google.com/docs/2007#document“,而是term="http://schemas.google.com/docs/2007#folder”。
但是,我得到一个HTTP状态200,并且没有创建任何文件夹。即使我使用term="http://schemas.google.com/docs/2007#document“,结果也是一样的。
我在我的搜索中发现了这种方法的问题,我现在试图发布到https://docs.google.com/feeds/default/private/full/folder%3A上,我得到了一个400错误。
任何帮助都将不胜感激。
致以最好的问候,Karthik
发布于 2012-06-22 00:27:59
要创建文件夹,请向https://docs.google.com/feeds/default/private/full发送包含以下xml正文的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
https://stackoverflow.com/questions/11137709
复制相似问题