Google_AppsServiceResource

The "apps" collection of methods.

Defined (1)

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

/gdwpm-api/contrib/Google_DriveService.php  
  1. class Google_AppsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Gets a specific app. (apps.get) 
  5. * @param string $appId The ID of the app. 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_App 
  8. */ 
  9. public function get($appId, $optParams = array()) { 
  10. $params = array('appId' => $appId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('get', array($params)); 
  13. if ($this->useObjects()) { 
  14. return new Google_App($data); 
  15. } else { 
  16. return $data; 
  17. /** 
  18. * Lists a user's installed apps. (apps.list) 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_AppList 
  21. */ 
  22. public function listApps($optParams = array()) { 
  23. $params = array(); 
  24. $params = array_merge($params, $optParams); 
  25. $data = $this->__call('list', array($params)); 
  26. if ($this->useObjects()) { 
  27. return new Google_AppList($data); 
  28. } else { 
  29. return $data;