Google_ProfilesServiceResource

The "profiles" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_ModeratorService.php  
  1. class Google_ProfilesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Updates the profile information for the authenticated user. This method supports patch semantics. 
  6. * (profiles.patch) 
  7. * @param Google_Profile $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Profile 
  10. */ 
  11. public function patch(Google_Profile $postBody, $optParams = array()) { 
  12. $params = array('postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('patch', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_Profile($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Updates the profile information for the authenticated user. (profiles.update) 
  21. * @param Google_Profile $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Profile 
  24. */ 
  25. public function update(Google_Profile $postBody, $optParams = array()) { 
  26. $params = array('postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('update', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_Profile($data); 
  31. } else { 
  32. return $data; 
  33. /** 
  34. * Returns the profile information for the authenticated user. (profiles.get) 
  35. * @param array $optParams Optional parameters. 
  36. * @return Google_Profile 
  37. */ 
  38. public function get($optParams = array()) { 
  39. $params = array(); 
  40. $params = array_merge($params, $optParams); 
  41. $data = $this->__call('get', array($params)); 
  42. if ($this->useObjects()) { 
  43. return new Google_Profile($data); 
  44. } else { 
  45. return $data;