I am trying to upload a document into Google docs using the Zend_Gdata
plugin. It uploads fine.
But the document by default becomes private. How can I set it to public. And how can I get the doc id and URL link to my doc so that others can access it to view only?
$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
$client = Zend_Gdata_ClientLogin::getHttpClient($email, $passwd, $service);
$docs = new Zend_Gdata_Docs($client);
$feed = $docs->getDocumentListFeed();
$newDocumentEntry = $docs->uploadFile(
$filename, $name, null, Zend_Gdata_Docs::DOCUMENTS_LIST_FEED_URI
);
I appreciate any help.
Thanks