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:
- Pray Zend developers to add this feature in some future release
- Download Zend sources and try to tweak them to add this feature
I have downloaded Zend sources and what i see is:
- demos\Docs.php already talks with Google docs (retrieve docs), you could try it from command line
- 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.
精彩评论