Google_ChangesServiceResource

The "changes" collection of methods.

Defined (1)

The class is defined in the following location(s).

/inc/google-api-php-client/src/contrib/Google_DriveService.php  
  1. class Google_ChangesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Lists the changes for a user. (changes.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param bool includeSubscribed Whether to include subscribed items. 
  8. * @opt_param string startChangeId Change ID to start listing changes from. 
  9. * @opt_param bool includeDeleted Whether to include deleted items. 
  10. * @opt_param int maxResults Maximum number of changes to return. 
  11. * @opt_param string pageToken Page token for changes. 
  12. * @return Google_ChangeList 
  13. */ 
  14. public function listChanges($optParams = array()) { 
  15. $params = array(); 
  16. $params = array_merge($params, $optParams); 
  17. $data = $this->__call('list', array($params)); 
  18. if ($this->useObjects()) { 
  19. return new Google_ChangeList($data); 
  20. } else { 
  21. return $data; 
  22. /** 
  23. * Gets a specific change. (changes.get) 
  24. * @param string $changeId The ID of the change. 
  25. * @param array $optParams Optional parameters. 
  26. * @return Google_Change 
  27. */ 
  28. public function get($changeId, $optParams = array()) { 
  29. $params = array('changeId' => $changeId); 
  30. $params = array_merge($params, $optParams); 
  31. $data = $this->__call('get', array($params)); 
  32. if ($this->useObjects()) { 
  33. return new Google_Change($data); 
  34. } else { 
  35. return $data;