PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Get a List of Documents

You can get a list of the Google Documents for a particular user by using the getDocumentListFeed() method of the docs service. The service will return a Zend_Gdata_Docs_DocumentListFeed object containing a list of documents associated with the authenticated user.

<?php
$service 
Zend_Gdata_Docs::AUTH_SERVICE_NAME;
$client Zend_Gdata_ClientLogin::getHttpClient($user$pass$service);
$docs = new Zend_Gdata_Docs($client);
$feed $docs->getDocumentListFeed();

The resulting Zend_Gdata_Docs_DocumentListFeed object represents the response from the server. This feed contains a list of Zend_Gdata_Docs_DocumentListEntry objects ($feed->entries), each of which represents a single Google Document.

Zend Framework