I am trying to determine how I can make a copy of a document using the Google Docs API Zend Gdata client.
I have the following code which is accessing the DocumentList and allows me to retrieve the individual entries.
$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
$sourceClient = Zend_Gdata_ClientLogin::getHttpClient($sourceUser, $sourcePass, $service);
$sourceDocs = new Zend_Gdata_Docs($sourceClient);
$entry = new Zend_Gdata_Docs_DocumentListEntry();
$docfeed = $sourceDocs->getDocumentListFeed();
foreach ($docfeed->entries as $entry)
{
$entry->getTitleValue();
}
I am trying to determine how I can make a copy of a particular document entry without having to download it and then reupload it. I know it can be done based on the API Documentation, but the example is given in .NET which doesn't seem to translated into PHP very well.
Google Docs API Link https://developers.google.com/google-apps/documents-list/#copying_documents