tbeseda
tbeseda

Reputation: 1857

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

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?

Upvotes: 1

Views: 916

Answers (1)

systempuntoout
systempuntoout

Reputation: 74124

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.

Upvotes: 3

Related Questions