使用 PHP 更新 Google 文档(或与文档一起存储的文件)

发布于 2024-08-27 21:30:32 字数 266 浏览 4 评论 0原文

Zend Gdata 似乎没有提供与 交互的方法Google 文档的 PUT API
我想清除具有已知 ID 的文档并更新其内容。

我应该使用 Zend 的 Gdata 进行身份验证并使用 HTTP PUT 请求吗?如何?

It seems Zend Gdata doesn't provide a way to interface with the PUT API for Google Docs.
I'd like to clear a document with a known id and update its contents.

Should I authenticate with Zend's Gdata and use an HTTP PUT request? How?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九局 2024-09-03 21:30:32

您有两个选择:

  1. 祈祷 Zend 开发人员在将来的版本中添加此功能
  2. 下载 Zend 源代码并尝试调整它们以添加此功能

我已经下载了 Zend 源代码,我看到的是:

  1. demos\Docs.php 已经与 Google 文档进行了对话(检索文档),你可以从命令行尝试一下
  2. Gdata\App.php 已经放置了函数!

我将在 Gdata\Docs.php 中创建一个新方法 updateDocument ,该方法使用 put 调用 App.php 并传递所需的参数 此处;创建后,我会将此调用添加到 demos\Docs.php 开始使用它。

You have two choices:

  1. Pray Zend developers to add this feature in some future release
  2. Download Zend sources and try to tweak them to add this feature

I have downloaded Zend sources and what i see is:

  1. demos\Docs.php already talks with Google docs (retrieve docs), you could try it from command line
  2. Gdata\App.php has already put function!

I would create a new method updateDocument in Gdata\Docs.php that calls App.php using put and passing the parameters required here; once created i would add this call to demos\Docs.php starting to play with it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文