Google Drive Revisions

Figure 1. Instantiate Google Drive Revisions
$revisions = eden('google')->drive($_SESSION['token'])->revisions();
Figure 2. Revisions Methods
Method Arguments Returns Description
$revisions->delete($fileId, $revisionId);
  1. string
  2. string
array Removes a revision
$revisions->getList($fileId);
  1. string
array Lists a file's revisions
$revisions->getSpecific($fileId, $revisionId);
  1. string
  2. string
array Gets a specific revision
$revisions->patch($fileId, $revisionId);
  1. string
  2. string
array Updates a revision. This method supports patch semantics
$revisions->setPinned(); none Eden_Google_Drive_Revisions Whether this revision is pinned to prevent automatic purging. This will only be populated on files with content stored in Drive.
$revisions->setPublishAuto(); none Eden_Google_Drive_Revisions Whether subsequent revisions will be automatically republished.
$revisions->setPublished(); none Eden_Google_Drive_Revisions Whether this revision is published. This is only populated for Google Docs.
$revisions->setPublishedLink($publishedLink);
  1. string
Eden_Google_Drive_Revisions A link to the published revision.
$revisions->setPublishedOutsideDomain(); none Eden_Google_Drive_Revisions Whether this revision is published outside the domain.
$revisions->update($fileId, $revisionId);
  1. string
  2. string
array Updates a revision.

© 2012 Openovate Labs. All rights reserved.