Google Drive Parents

Figure 1. Instantiate Google Drive Parents
$parents = eden('google')->drive($_SESSION['token'])->parents();
Figure 2. Parents Methods
Method Arguments Returns Description
$parents->delete($fileId, $parentId);
  1. string
  2. string
array Removes a parent from a file.
$parents->setChildLink($childLink);
  1. string
Eden_Google_Drive_Parent A link to the child.
$parents->getList($fileId);
  1. string
array Lists a file's parents.
$parents->getSpecific($fileId, $parentId);
  1. string
  2. string
array Gets a specific parent reference.
$parents->insert($fileId, $parentId);
  1. string
  2. string
array Adds a parent folder for a file.

© 2012 Openovate Labs. All rights reserved.