HI,

I am creating one application for getting list of all my docs after
login.

I also want to change rights by my code.

can anybody help me?

my code is below.



$path = getcwd();
set_include_path($path.'/ZendFramework-1.9.6/library');


include ('ZendGdata/library/Zend/Gdata/Docs.php');
include ('ZendGdata/library/Zend/Gdata/ClientLogin.php');


$user = $_POST['txtusername'];
$pass = $_POST['txtpassword'];
$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME; // predefined service
name for Google Documents

$httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
$service);
$gdClient = new Zend_Gdata_Docs($httpClient);

echo "<h2>Your documents</h2>\n";
  $feed = $gdClient->getDocumentListFeed();


echo 'Total '.$feed->totalResults.' results found<br><br>';


foreach ($feed->entries as $entry) {
echo "$count.$entry->title<br>";
$count += 1;
}

Thanks in advance

--

You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to google-docs-data-a...@googlegroups.com.
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en.


Reply via email to