【问题标题】:Export/Download a Google Document using Zend Gdata使用 Zend Gdata 导出/下载 Google 文档
【发布时间】:2011-11-07 00:43:13
【问题描述】:

如何使用 Zend Gdata 类导出(即从 Google 下载到我的本地)Google 文档?

我可以使用 Zend_Gdata_Docs 方法轻松检索所有文档的列表: getAllDocuments() 和 getDocumentListFeed()

Zend (http://framework.zend.com/manual/en/zend.gdata.docs.html) 为 Google 文档列表数据 API 提供的示例包括“上传文档”,但没有相应的“下载文件”?

谢谢!

【问题讨论】:

    标签: php google-data-api zend-gdata


    【解决方案1】:

    好吧,我能够做到这一点的一种方法是使用:

    Zend_Gdata 方法 performHttpRequest()

    我传递的第一个参数是 'GET',第二个参数是之前的 getDocumentListFeed() 调用给出的条目内容 URL ($entry->content->getSrc())。

    不确定是否有更好的方法,但这就像一两行代码......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-02
      • 2011-11-20
      • 2012-02-21
      • 1970-01-01
      • 1970-01-01
      • 2021-12-20
      相关资源
      最近更新 更多