Google_ChangesServiceResource

The "changes" collection of methods.

Defined (1)

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

/gdwpm-api/contrib/Google_DriveService.php  
  1. class Google_ChangesServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Gets a specific change. (changes.get) 
  5. * @param string $changeId The ID of the change. 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Change 
  8. */ 
  9. public function get($changeId, $optParams = array()) { 
  10. $params = array('changeId' => $changeId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('get', array($params)); 
  13. if ($this->useObjects()) { 
  14. return new Google_Change($data); 
  15. } else { 
  16. return $data; 
  17. /** 
  18. * Lists the changes for a user. (changes.list) 
  19. * @param array $optParams Optional parameters. 
  20. * @opt_param bool includeDeleted Whether to include deleted items. 
  21. * @opt_param bool includeSubscribed Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive. 
  22. * @opt_param int maxResults Maximum number of changes to return. 
  23. * @opt_param string pageToken Page token for changes. 
  24. * @opt_param string startChangeId Change ID to start listing changes from. 
  25. * @return Google_ChangeList 
  26. */ 
  27. public function listChanges($optParams = array()) { 
  28. $params = array(); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('list', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_ChangeList($data); 
  33. } else { 
  34. return $data; 
  35. /** 
  36. * Subscribe to changes for a user. (changes.watch) 
  37. * @param Google_Channel $postBody 
  38. * @param array $optParams Optional parameters. 
  39. * @opt_param bool includeDeleted Whether to include deleted items. 
  40. * @opt_param bool includeSubscribed Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive. 
  41. * @opt_param int maxResults Maximum number of changes to return. 
  42. * @opt_param string pageToken Page token for changes. 
  43. * @opt_param string startChangeId Change ID to start listing changes from. 
  44. * @return Google_Channel 
  45. */ 
  46. public function watch(Google_Channel $postBody, $optParams = array()) { 
  47. $params = array('postBody' => $postBody); 
  48. $params = array_merge($params, $optParams); 
  49. $data = $this->__call('watch', array($params)); 
  50. if ($this->useObjects()) { 
  51. return new Google_Channel($data); 
  52. } else { 
  53. return $data;