Google_UserProfilesServiceResource

The "userProfiles" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_DfareportingService.php  
  1. class Google_UserProfilesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Gets one user profile by ID. (userProfiles.get) 
  6. * @param string $profileId The user profile ID. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_UserProfile 
  9. */ 
  10. public function get($profileId, $optParams = array()) { 
  11. $params = array('profileId' => $profileId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('get', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_UserProfile($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Retrieves list of user profiles for a user. (userProfiles.list) 
  20. * @param array $optParams Optional parameters. 
  21. * @return Google_UserProfileList 
  22. */ 
  23. public function listUserProfiles($optParams = array()) { 
  24. $params = array(); 
  25. $params = array_merge($params, $optParams); 
  26. $data = $this->__call('list', array($params)); 
  27. if ($this->useObjects()) { 
  28. return new Google_UserProfileList($data); 
  29. } else { 
  30. return $data;