使用 PHP 更新 Google 文档(或与文档一起存储的文件)
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有两个选择:
我已经下载了 Zend 源代码,我看到的是:
我将在 Gdata\Docs.php 中创建一个新方法
updateDocument
,该方法使用 put 调用 App.php 并传递所需的参数 此处;创建后,我会将此调用添加到 demos\Docs.php 开始使用它。You have two choices:
I have downloaded Zend sources and what i see is:
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.