0

我正在创建一个 iOS 应用程序,它将文件上传到 Google Docs 中的特定集合。如何获取该集合的可恢复创建媒体链接?

当我按照此处的建议对集合执行获取请求时:https ://groups.google.com/forum/?fromgroups#!topic/google-documents-list-api/LOxHfIxVAec

我得到以下 xml(遗憾的是没有 resumable-create-media)

<?xml version='1.0' encoding='UTF-8'?>
<entry xmlns='http://www.w3.org/2005/Atom'
         xmlns:docs='http://schemas.google.com/docs/2007' 
         xmlns:batch='http://schemas.google.com/gdata/batch' 
         xmlns:gd='http://schemas.google.com/g/2005'>
     <id>https://docs.google.com/feeds/documents/private/full/folder%3A0B4Xm3k31FF25MXZzbjZvNzhZU00</id>
     <published>2012-07-03T14:38:35.068Z</published>
     <updated>2012-07-03T14:38:35.068Z</updated>
     <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/docs/2007#folder' label='folder'/>
     <title type='text'>My Collection</title>
     <content type='application/atom+xml' src='https://docs.google.com/feeds/folders/private/full/folder%3A0B4Xm3k31FF25MXZzbjZvNzhZU00'/>
     <link rel='alternate' type='text/html' href='https://docs.google.com/#folders/folder.0.0B4Xm3k31FF25MXZzbjZvNzhZU00'/>
     <link rel='http://schemas.google.com/docs/2007#icon' type='image/png' href='https://ssl.gstatic.com/docs/doclist/images/icon_9_collection_list.png'/>
     <link rel='self' type='application/atom+xml' href='https://docs.google.com/feeds/documents/private/full/folder%3A0B4Xm3k31FF25MXZzbjZvNzhZU00'/>
     <link rel='edit' type='application/atom+xml' href='https://docs.google.com/feeds/documents/private/full/folder%3A0B4Xm3k31FF25MXZzbjZvNzhZU00/h47320jg'/>
     <author><name>xxxx</name>
     <email>xxxx@gmail.com</email></author>
     <gd:resourceId>folder:0B4Xm3k31FF25MXZzbjZvNzhZU00</gd:resourceId>
     <gd:lastModifiedBy><name>stayaway</name><email>xxxx@gmail.com</email></gd:lastModifiedBy>
     <gd:quotaBytesUsed>0</gd:quotaBytesUsed>
     <docs:writersCanInvite value='true'/>
     <gd:feedLink rel='http://schemas.google.com/acl/2007#accessControlList' href='https://docs.google.com/feeds/acl/private/full/folder%3A0B4Xm3k31FF25MXZzbjZvNzhZU00'/>
</entry>

非常感谢

4

1 回答 1

1

Google Drive API已取代 Documents List API。

一个示例 Objective-C 应用程序演示了 Drive API 的使用,包括上传和下载文件,在这里

于 2012-07-10T08:54:21.977 回答