开发者

Update a Google Doc (or file stored with Docs) with PHP

It seems Zend Gdata开发者_JAVA百科 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜